Answers for "How to check if the product is in a multiple category on a single-product"

0

How to check if the product is in a multiple category on a single-product

if( has_term( array( 'laptop', 'fridge', 'hats', 'magic wand' ), 'product_cat' ) ) :

// Do stuff here

else :

// Do some other stuff

endif;
Posted by: Guest on October-06-2021

Code answers related to "How to check if the product is in a multiple category on a single-product"

Browse Popular Code Answers by Language