register_nav_menu()WP 3.0.0

Registers a navigation menu location for a theme.

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of register_nav_menu() WP 5.9.3

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