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: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Save posted nav menu item data.