WordPress开发者和主题制作者的搜索引擎



register_nav_menu ›

Since3.0.0
已弃用n/a
register_nav_menu ( $location, $description )
参数: (2)
  • (string) $location Menu location identifier, like a slug.
    Required: Yes
  • (string) $description Menu location descriptive text.
    Required: Yes
定义在:
文档:

Registers a navigation menu location for a theme.



源码

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