Méthode |
Description |
|
format_menu_item ( object | array $menu_item, boolean $children = false, array $menu = [] ) : array |
Format a menu item for JSON API consumption. |
|
get_menu ( integer $id ) : array |
Get a menu. |
|
get_menu_location ( string $location ) : array |
Get menu for location. |
|
get_menu_locations ( ) : array |
Get menu locations. |
|
get_menus ( ) : array |
Get menus. |
|
get_nav_menu_item_children ( integer $parent_id, array $nav_menu_items, boolean $depth = true ) : array |
Returns all child nav_menu_items under a specific parent. |
|
register_routes ( array $routes ) : array |
Register menu routes for WP API. |
|