WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp nav menu update menu items

Contents

Description

Saves nav menu items

Parameters

$nav_menu_selected_id
(int or string) (required) id, slug, or name of the currently-selected menu.
Default: None
$nav_menu_selected_title
(string) (required) Title of the currently-selected menu.
Default: None

Return

(array) 
The menu updated message.

Usage

 <?php wp_nav_menu_update_menu_items$nav_menu_selected_id$nav_menu_selected_title ); ?> 

Example

wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title );

Change Log

Source File

wp_nav_menu_update_menu_items() is located in wp-admin/includes/nav-menu.php..

Related

wp_get_nav_menu_items()