V
V
Vladimir Kalaganov2019-08-15 09:59:37
WordPress
Vladimir Kalaganov, 2019-08-15 09:59:37

How to hide empty categories of the categories widget, the output goes through the_widget?

Good afternoon, I display product categories using

the_widget( 'WC_Widget_Product_Categories',  $instance, $args  );

All categories are displayed, I would like to hide empty ones without products,
the name attribute with hidden categories widget-woocommerce_product_categories[17][hide_empty]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question