How to show empty subcategories in an empry category
-
Hello,
I used this code
add_filter( 'woocommerce_product_subcategories_hide_empty', '__return_false' );
to show empty categories and work, but I need to show empty subcategory of that category too, if I click to the empty category no subcategory are shown, that code seems to work with first level category only and don’t work with subcategories.
Could anyone tell me what code I can use to show even empty subcategories of an empty category?
Example: CAT A (empty) – SUB CAT A (EMPTY), with that code only CAT A is displayed and if I click on CAT A the category not show the subcategory if is empty.
In Woocommerce option “Show Categories” and “Show Subcategories” are selected.
Thanks in advance
- The topic ‘How to show empty subcategories in an empry category’ is closed to new replies.