As it says in the title, if all of the product categories you created with woocommere do not appear on the menu creation page, it will be sufficient to add the following code to the child theme of your active theme, that is, add it to the end of the “themes/[your theme name]-child>functions.php” file.

//for invisible product categories (https://ndr.ist)
add_filter( 'get_terms_args', 'checklist_args', 10, 2 );
function checklist_args( $args, $taxonomies )
{
$menu_taxonomies = array('product_cat', 'page', 'category','post');
if(in_array($taxonomies[0], $menu_taxonomies))
{
$args['number'] = 1000;
}
return $args;
}

Leave a Reply