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:

Description

Retrieves all registered navigation menu locations and the menus assigned to them.

Related Functions

wp_map_nav_menu_locations, wp_get_nav_menu_object, wp_nav_menu_locations_meta_box, wp_get_nav_menu_items, wp_ajax_menu_locations_save

Top Google Results

User discussions

wpseek mobile