# menu_api
The menu API contains all API methods for creating, modifying, and reading menus.
Methods: menu__
create($data) - Used to create a new menu.
create(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
delete($data) - Used to delete a menu.
delete(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
add_menu_item($data) - Used to create a new media item:
add_menu_item(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
delete_menu_item($data) - Used to delete a menu item.
delete_menu_item(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
item_details($data) - Used to get menu item details:
item_details(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
metadata($data) - Used to get a menu item's metadata (info):
metadata(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
read($data) - Used to read a menu item.
read(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
save_menu_item($data) - Used to save a menu item:
save_menu_item(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys:
set_menu_order($data) - Used to set menu order.
set_menu_order(array $data) : array
Returns: (array)
Parameters:
$data (array)
Expects an array containing the following array keys: