How to get all the menu listed in Menus Created inside the Apperance Menu?

the menus i want to retrieve is under here

I’m creating a custom menu widget in wordpress using


$menu_slug = 'my-menu-slug'
wp_nav_menu( array(
'menu' => $menu_slug,
'container' => false,
'menu_class' => 'nav navbar-nav navbar-collapse',
'walker' => new Sunset_Walker_Nav_Primary()
) );

the problem is i’m having trouble on getting the menu slugs

Read more here: How to get all the menu listed in Menus Created inside the Apperance Menu?

Leave a Reply

Your email address will not be published. Required fields are marked *