Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
}
Source by rudrastyh.com #
 
PREVIOUS NEXT
Tagged: #product #category #woocommerce
ADD COMMENT
Topic
Name
4+5 =