May 14, 2015

is_woocommerce function to cover all important woocommerce pages

is_woocommerce function to cover all important woocommerce pages


function is_wc(){
return (
is_woocommerce()
||
is_shop()
||
is_product()
||
is_cart()
||
is_checkout()
||
is_account_page()
);
}

Last updated: May 14, 2015