Метод |
Описание |
|
format_menu_item ( object | array $menu_item, boolean $children = false, array $menu = [] ) : array |
Format a menu item for REST API consumption. |
|
get_api_namespace ( ) : string |
Get WP API namespace. |
|
get_menu ( $request ) : array |
Get a menu. |
|
get_menu_location ( $request ) : array |
Get menu for location. |
|
get_menu_locations ( $request ) : 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. |
|
get_plugin_namespace ( ) : string |
Get WP API Menus namespace. |
|
register_routes ( ) |
Register menu routes for WP API v2. |
|