register_nav_menus() (register menu)

The register_nav_menus() function is used to register a menu. The menu refers to the menu manager of WordPress 3.0+. After registration, the user can drag in the menu manager to generate the navigation menu.

usage

 

 

parameter

$locations

(array) (required) The menu to be registered, the key value is the menu ID, and the key name is the menu name. You can create more than one at a time.

Default: None

return value

This function has no return value.

example

 

 

other

The function is located in: wp-includes/nav-menu.php

More articles about this function: http://www.endskin.com/tag/menu

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645846&siteId=291194637