in

A more reliable get_queried_object() in WooCommerce 11.0

Starting with WooCommerce 11.0, the function get_queried_object() on the Shop page will return a WP_Post object instead of a WP_Post_Type object, aligning its behavior with other pages.

Leave a Reply