Uma área de pesquisa sobre o WordPress para devs e autores do tema



register_nav_menu ›

Desde3.0.0
Obsoleton/a
register_nav_menu ( $location, $description )
Parâmetros: (2)
  • (string) $location Menu location identifier, like a slug.
    Required: Yes
  • (string) $description Menu location descriptive text.
    Required: Yes
Definido em:
Codex:

Registers a navigation menu location for a theme.



Fonte

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