register_nav_menu

Advertisement

Summery Summery

Registers a navigation menu location for a theme.

Syntax Syntax

register_nav_menu( string $location, string $description )

Parameters Parameters

$location

(Required) Menu location identifier, like a slug.

$description

(Required) Menu location descriptive text.

Source Source

File: wp-includes/nav-menu.php

 */
function register_nav_menu( $location, $description ) {
	register_nav_menus( array( $location => $description ) );

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply