Un motore di ricerca WordPress per sviluppatori e autori di temi



get_nav_menu_locations ›

Da3.0.0
Deprecaton/a
get_nav_menu_locations ( Nessun parametro )
Ritorna:
  • (array) Registered navigation menu locations and the menus assigned them. If none are registered, an empty array.
Definito a:
Codex:

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



Sorgenti

function get_nav_menu_locations() {
	$locations = get_theme_mod( 'nav_menu_locations' );
	return ( is_array( $locations ) ) ? $locations : array();
}