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 shop
.
Mean if a product1
contains tag1
and shop category
product2
contains tag2
and any other category, then only tag1
will show.