is_woocommerce() suggestion
-
I’d like to propose that the function is_woocommerce() in woocommerce-core-functions.php include a is_product_taxonomy() in the if statement.
ie:
/** * is_woocommerce - Returns true if on a page which uses WooCommerce templates (cart and checkout are standard pages with shortcodes and thus are not included) * * @access public * @return bool */ function is_woocommerce() { return ( is_shop() || is_product_category() || is_product_tag() || is_product() || is_product_taxonomy() ) ? true : false; }
This will help with custom Taxonomies, and CSS styling for them.
Thanks!
- The topic ‘is_woocommerce() suggestion’ is closed to new replies.