woof_terms_where_hidden_childs
Se usa para cualquier término con términos hijos cuando es necesario ocultar los términos hijos en todos: casillas de verificación, radio, selección, selección múltiple, etiquetas.
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);