WP_Customize_Nav_Menu_Item_Setting::update

SummerySummery

Creates/updates the nav_menu_item post for this setting.

Syntax

WP_Customize_Nav_Menu_Item_Setting::update( array|false $value )

DescriptionDescription

Any created menu items will have their assigned post IDs exported to the client via the ‘customize_save_response’ filter. Likewise, any errors will be exported to the client via the customize_save_response() filter.

To delete a menu, the client can send false as the value.

ParametersParameters

$value

(array|false) (Required) The menu item array to update. If false, then the menu item will be deleted entirely. See WP_Customize_Nav_Menu_Item_Setting::$default for what the value should consist of.

ReturnReturn

(null|void)

SourceSource

File: wp-includes/customize/class-wp-customize-nav-menu-item-setting.php


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.

See alsoSee also

Scroll to Top