I am looking for an option to list all menu items in a particular menu without the links. I came across wp_get_nav_menu_items(), but cant seem to be able to find the menu slug
http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items
If somebody can help me do this with menu name/menu id, I would be most grateful
You can find the "menu slug"(menu name) on header.php or functions.php file.
Method 1: Look into header.php file
open your theme folder and find header.php file. In that file there will be a line similar to this:
Here
primary
is your menu name.Method 2: Look into functions.php file.
If you defined multiple menus, then you should check inside the functions.php file.
In that file you may find a line similar to this:
Here
primary
is your menu name.Hope this will help you.