I want to be able to hide categories in a categories drop down menu (wordpress + woocommerce) if the number of products within the category is 0. Does somebody know how to do this? I tried this below:
wp_dropdown_categories('hide_empty=0');
and
wp_dropdown_categories('excludes=0');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.