get_queried_object() return wrong object
-
If I am on the archive page woocommerce (archive-product.php) use a filter, the function
get_queried_object()returnsWP_Post_Typeobject, notWP_Term. As a result, I am unable to determine the current category. How can this conflict be resolved?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘get_queried_object() return wrong object’ is closed to new replies.