WP_Customize_Nav_Menu_Item_Setting::flush_cached_value( int $menu_id, int $menu_item_id )

In this article

Clear the cached value when this nav menu item is updated.

Parameters

$menu_idintrequired
The term ID for the menu.
$menu_item_idintrequired
The post ID for the menu item.

Source

public function flush_cached_value( $menu_id, $menu_item_id ) {
	unset( $menu_id );
	if ( $menu_item_id === $this->post_id ) {
		$this->value = null;
	}
}

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.