register_nav_menu( string $location, string $description )
Registers a navigation menu location for a theme.
Description Description
Parameters Parameters
- $location
-
(string) (Required) Menu location identifier, like a slug.
- $description
-
(string) (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 ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Register a navigation menu, extended example:
Register a “primary” nav menu” example