$cate = get_queried_object();
$cateID = $cate->term_id;
echo $cateID;
Keywords: Woocommerce, category id, product category, current category
Title:
Wordpress - Get current product category id
Description:
How do I get the current product category that the user is browsing through?
...
Rating:
4