Answers for "woocommerce product category page"

1

is product category woocommerce

if( is_product_category() ) {
	// yay, we are on a product category page!
} else {
 
}
Posted by: Guest on October-30-2020
1

is product page woocommerce

if( is_product() ) {
	// do something
} else {
 
}
Posted by: Guest on October-14-2021
0

is product category woocommerce

if( has_term( 4, 'product_cat' ) ) {
	// do something if current product in the loop is in product category with ID 4
}
Posted by: Guest on February-26-2021
0

is product page woocommerce

<a href="">a</a>
Posted by: Guest on October-22-2021

Code answers related to "woocommerce product category page"

Browse Popular Code Answers by Language