does anyone know how to hide one specific tag name from the tags list in WooCommerce Product page?
Example: in a product page i see TAGS: 1, 2, 3. I do not want to show tag 2 in tag list on every product page the tag 2 appears. Only 1 and 3.
Thanks for yours help.
2
Answers
You can use
get_the_terms
filter hook. try the below code. code will go in your active theme functions.php file.Tested and works
The answer given is working fine.
But if you want the tags to show in the Products list on the dashboard (/wp-admin/edit.php?post_type=product) then you need to change :
To :
Full code :