Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102159

shawn@eggplantstudios.ca on "is_woocommerce() suggestion"

$
0
0

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!

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 102159

Trending Articles