wp_save_nav_menu_items


wp_save_nav_menu_items ( $menu_id = 0, $menu_data = array() )

Parameters:
  • (int) menu_id The menu ID for which to save this item. Value of 0 makes a draft, orphaned menu item. Default 0.
  • (array[]) menu_data The unsanitized POSTed menu item data.
Returns:
  • (int[]) The database IDs of the items saved
Defined at:

Description

Save posted nav menu item data.

Related Functions

wp_get_nav_menu_items, wp_setup_nav_menu_item, wp_update_nav_menu_item, _sort_nav_menu_items, is_nav_menu_item

Top Google Results

User discussions

wpseek mobile