is_woocommerce()

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


Description Description


Return Return

(bool)


Top ↑

Source Source

File: includes/wc-conditional-functions.php

function is_woocommerce() {
	return apply_filters( 'is_woocommerce', is_shop() || is_product_taxonomy() || is_product() );
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.