Core Function
View Source on Trac ↗ get_nav_menu_locations()
get_nav_menu_locations( ) Retrieves all registered navigation menu locations and the menus assigned to them.
Return Value
(int[])
int[] Associative array of registered navigation menu IDs keyed by their
location name. If none are registered, an empty array.
Function Information
Since Version
3.0.0
Source File
wp-includes/nav-menu.php
Advertisement