register_nav_menus( array $locations = array() )

Registers navigation menu locations for a theme.


Parameters

$locations

(Optional) Associative array of menu location identifiers (like a slug) and descriptive text.

Default value: array()


Source

File: wp-includes/nav-menu.php

function register_nav_menus( $locations = array() ) {
	global $_wp_registered_nav_menus;

	add_theme_support( 'menus' );

	$_wp_registered_nav_menus = array_merge( (array) $_wp_registered_nav_menus, $locations );
}


Changelog

Changelog
Version Description
WP-3.0.0 Introduced.