Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( has_term( array('Something'), 'product_cat', get_the_id() ) )
- $textafter = '( Ex. Moms )'; //add your text
- return $price . '' . $textafter . '';
- }
- if( has_term( array('Something'), 'product_cat', $product->get_id() ) )
- $textafter = '( Ex. Moms )'; //add your text
- return $price . '' . $textafter . '';
- }
Add Comment
Please, Sign In to add comment