is_woocommerce Closes #4475

This commit is contained in:
Mike Jolley 2014-01-09 14:00:18 +00:00
parent 48300f4ebf
commit 656663ba47
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
* @return bool
*/
function is_woocommerce() {
return ( is_shop() || is_product_taxonomy() || is_product() ) ? true : false;
return apply_filters( 'is_woocommerce', ( is_shop() || is_product_taxonomy() || is_product() ) ? true : false );
}
if ( ! function_exists( 'is_shop' ) ) {