get_nav_menu_locations
get_nav_menu_locations ( No parameters )
Returns:- (int[]) Associative array of registered navigation menu IDs keyed by their location name. If none are registered, an empty array.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Retrieves all registered navigation menu locations and the menus assigned to them.