woocommerce product category code example
Example 1: is product category woocommerce
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}
Example 2: woocommerce product_categori
[product_categories number="0" parent="0"]
Example 3: 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
}