Get all terms if product of that term contains a specific category
I am using below code for get all product tags:
$tags = get_terms('product_tag', 'orderby=name&hide_empty=1');
However, I want to show only those tags in which product having these tags but must contain a specific product category like
Mean if a
tag1 and shop category
tag2 and any other category, then only
tag1 will show.