Getting menu name in a given location
-
I’m working with custom menus, and defined a few locations in the theme’s functions.php file, and then through the admin defined some menus and assigned them to the locations.
I just spent some time looking through the nav-menu.php in wp-includes/ and I can’t figure out how to pragmatically get the name of the menu assigned to a given location.
I.e. if the theme registers a location called “header_menu” and I make a menu in admin called “navigation” and assign it to “header_menu”. How do I pragmatically get the menu assigned to that location (pass in “header_menu” and get out “navigation”)?
Thanks,
-Nate
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting menu name in a given location’ is closed to new replies.