[wp-trac] [WordPress Trac] #35640: No API to set a nav menu location
WordPress Trac
noreply at wordpress.org
Thu Jan 28 05:21:21 UTC 2016
#35640: No API to set a nav menu location
--------------------------+-----------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
We've got an API to retrieve the nav menu locations -
`get_nav_menu_locations()` however, there's nothing (as far as I can tell)
to set a theme location, either singularly or for all menu's.
We should probably have a method that can be used to set a single theme
locations menu, and one to bulk-set.
For reference, the admin pages currently all call `set_theme_mod(
'nav_menu_locations', $locations );` directly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35640>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list