Admin: WooCommerce Navigation Menus do not show empty categories search tab
When you perform a search for terms in the menu editor, it runs get_terms() with the name__like argument (a category is a type of “term”). The get_terms_args filter lets you filter any use of get_terms(). So we can use this filter and check if the name__like argument has a value. If it does then that … Read more