I have a tag called ‘Sold out’; the slug is ‘sold-out’. Where do I find the ID?
How to find a WooCommerce Product Tag ID?
Related content
- WooCommerce: Get Product IDs (All, by Tag, by Category)
When you work with WooCommerce PHP snippets, you often need to “get” stuff off your WordPress database in order to make some calculations and return… - WooCommerce: Truncate Tag List @ Single Product Page
If you use WooCommerce product tags, it’s possible that a product may belong to 10 or more of them. When that happens, the single product… - WooCommerce: Allow CSV Product Export By Tag
Ok, this is a little hacky and pretty manual, but it happened to me in the past that the inbuilt WooCommerce CSV product export was… - WooCommerce: Automatically Add Tag To Purchased Products
This functionality can be helpful to those who need to differentiate purchased products from non-purchased ones. Think about a way to automatically discount non-tagged products,… - WooCommerce: Get Variation IDs By Product Category or Tag
We can get products belonging to a product category or product tag very easily. What’s much more difficult is getting single variations based on a…
Rodolfo Melogli
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli
1 thought on “How to find a WooCommerce Product Tag ID?”
Reply Cancel reply
Go to the WordPress Dashboard -> Products > Tags and hover onto the tag “Edit” button:
You’ll see the tag edit page URL, which goes like this: https://example.com/wp-admin/term.php?taxonomy=product_tag&tag_ID=20873&post_type=product
In this case, 20873 is your tag ID!