Registers a navigation menu location for a theme.
$locationstringrequired
$descriptionstringrequired
add_theme_support( 'menus' );
register_nav_menus( array( $location => $description ) ); function register_nav_menu( $location, $description ) {
register_nav_menus( array( $location => $description ) );
}
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/register_nav_menu