woof_terms_where_hidden_childs
在需要有子项的任何项中使用 隐藏其子项 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);