Clear the cached value when this nav menu item is updated.
(int) (Required) The term ID for the menu.
(int) (Required) The post ID for the menu item.
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; } }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menu_item_setting/flush_cached_value