Created
May 2, 2017 00:53
-
-
Save digitalhydra/b5f4bb6d25ff66a3dedc13e10873c00f to your computer and use it in GitHub Desktop.
check if product is in cat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( has_term( array( 'laptop', 'fridge', 'hats', 'magic wand' ), 'product_cat' ) ) : | |
// Do stuff here | |
else : | |
// Do some other stuff | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment