In this function, I need to exclude any categories from $categories which are children of "Uncategorized".
function get_cats(){
$post_cats= array();
$categories = get_the_category();
foreach($categories as $cat){
array_push($post_cats, $cat->cat_ID);
}
return $post_cats;
}
Thanks in advance if you can help.