WordPress at a glance

register_nav_menu() WP 1.0

Registers a navigation menu location for a theme.

Works based on: register_nav_menus()

No Hooks.

Return

Nothing (null).

Usage

register_nav_menu( $location, $description );
$location(string) (required)
Menu location identifier, like a slug.
$description(string) (required)
Menu location descriptive text.

Code of register_nav_menu: wp-includes/nav-menu.php VER 5.0.1

<?php
function register_nav_menu( $location, $description ) {
	register_nav_menus( array( $location => $description ) );
}

Related Functions

From tag: nav menu (nav_menu)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register