Core Function
View Source on Trac ↗ wp_update_nav_menu_object()
wp_update_nav_menu_object( mixed $menu_id = 0, mixed $menu_data = array() ) Saves the properties of a menu or create a new menu with those properties.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $menu_id int | The ID of the menu or "0" to create a new menu. |
| $menu_data array | The array of menu data. |
Return Value
((int)
| WP_Error) Menu ID on success, WP_Error object on failure.
Function Information
Since Version
3.0.0
Source File
wp-includes/nav-menu.php
Advertisement