• Resolved istran

    (@istran)


    If I am on the archive page woocommerce (archive-product.php) use a filter, the function get_queried_object() returns WP_Post_Type object, not WP_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.