HUSKY - Products Filter Professional for WooCommerce

woof_terms_where_hidden_childs

Uses for any term with child’s terms when its necessary hide that child’s terms  at all in: checkboxes, radio,select,mselect,labels.

add_filter('woof_terms_where_hidden_childs', function($term_id)
    {
        $hide_array=array(11,22,33,44,55,66,77);
        if (in_array($term_id, $hide_array))
        {
            return true;
        }
        
        return false;
    }, 1, 1);

Troubles? Ask for Support!