I have some utility categories that are only used by my theme. To help separate these categories I place them all as children of uncategorized.
How can I make sure that any call to wp_list_categories() excludes the child categories under "uncategorized" cat_id = 1?
I want this to work even if the call wp_list_categories() comes from a third party plugin that I don't control.
Perhaps a filter I can place in functions.php that intercepts any call for the wp_list_categories() function to attach the exlude_tree = '1' to the arguments.
For example, in my own categories plugin widget, I use this...
<ul> <?php $cat_args['title_li'] = ''; $cat_args['exclude_tree'] = 1; wp_list_categories(apply_filters('widget_categories_args', $cat_args)); ?> </ul>