wpseek.com
A WordPress-centric search engine for devs and theme authors



register_nav_menu › WordPress Function

Since3.0.0
Deprecatedn/a
register_nav_menu ( $location, $description )
Parameters: (2)
  • (string) $location Menu location identifier, like a slug.
    Required: Yes
  • (string) $description Menu location descriptive text.
    Required: Yes
Defined at:
Codex:

Registers a navigation menu location for a theme.



Source

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