wp_update_nav_menu_item Wordpress function


Description:

Save the properties of a menu item or create a new one.


Syntax:


Arguments:

(int) $menu_id The ID of the menu. Required. If "0", makes the menu item a draft orphan.
(int) $menu_item_db_id The ID of the menu item. If "0", creates a new menu item.
(array) $menu_item_data The menu item's data.


Return Type:

(int) The menu item's database ID or WP_Error object on failure.


Define At:

wp-includes/nav-menu.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_update_nav_menu_item


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×