HUSKY - Products Filter Professional for WooCommerce

如何隐藏空计数?

问题链接: https://pluginus.net/support/topic/how-to-hide-empty-counts/

到文件 functions.php 添加以下代码:

add_filter('woof_get_terms_args', function ($args) {
    $args['hide_empty'] = true;
    return $args;
});