How to Find a Category ID in Woocommerce

Finding a category ID in Woocommerce is very similar to finding a post ID. For example, to find the ID of a category, go to Products » Categories and click on the category name. WordPress will open the category in an editor, and you will be able to see the category ID in your browser’s address bar. You can see in the screenshot where tag_ID 21 is the category ID for category “Accessories”

get_cat_id_wc