WP_Customize_Nav_Menu_Item_Setting::flush_cached_value

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$menu_id

(Required) The term ID for the menu.

$menu_item_id

(Required) The post ID for the menu item.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply