Is it possible to somehow hook (if that’s the best way) lines in the templates that look like this :
echo $product->get_categories( ‘, ‘, ‘<h5 class=”posted_in”>’, ‘</h5>’ );
I’d like to exclude / hide a specific category when executing a product loop and displaying a product on any page.
However, I’d like to continue showing the category in the woocommerce product categories widget.
To help the conversation, assume the category is “Free” and the ID is 165.
I’d like to see if this approach exists rather than modifying the templates direct.
Thanks!