PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How to Hide empty counts?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

I want empty terms to be hidden as seen in this image attached.

https://app.screencast.com/2ObENDST2QbAR

This is the website - https://wildmongoo.co.za/shop-all/

These categories are empty so I want them to be hidden.

Activating dynamic count is not an option because it slows down the website.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Try  in  file functions.php add:

add_filter('woof_get_terms_args', function($args){

$args['hide_empty'] = true;

return $args;

});

 

 

Thank you it works.

Welcome;)