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?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: