WordPress at a glance

is_woocommerce() WC 1.0

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).

Hooks from the function
Return

true/false.

Usage

is_woocommerce();

Code of is woocommerce: woocommerce/includes/wc-conditional-functions.php WC 3.6.5

<?php
function is_woocommerce() {
	return apply_filters( 'is_woocommerce', is_shop() || is_product_taxonomy() || is_product() );
}
No comments
    Hello, !     Log In . Register