Woocommerce generally displays only the categories with products on the Shop page. I would like to display all the categories(except Uncategorized) in the Shop Page even if it's empty.
The below displays all the categories including Uncategorized. Is there a way to exclude Uncategorized from that?
add_filter( 'woocommerce_product_subcategories_hide_empty', 'show_empty_categories', 10, 1 );
function show_empty_categories ( $show_empty ) {
$show_empty = true;
return $show_empty;
}