WP_Customize_Setting::_clear_aggregated_multidimensional_preview_applied_flag() WordPress Method

The WP_Customize_Setting::_clear_aggregated_multidimensional_preview_applied_flag() method is used to clear the aggregated multidimensional preview applied flag. This flag is used to determine whether changeset values should be used when rendering a preview.

WP_Customize_Setting::_clear_aggregated_multidimensional_preview_applied_flag() #

Clear out the previewed-applied flag for a multidimensional-aggregated value whenever its post value is updated.


Description

This ensures that the new value will get sanitized and used the next time that WP_Customize_Setting::_multidimensional_preview_filter() is called for this setting.

Top ↑

See also


Top ↑

Source

File: wp-includes/class-wp-customize-setting.php

	final public function _clear_aggregated_multidimensional_preview_applied_flag() {
		unset( self::$aggregated_multidimensionals[ $this->type ][ $this->id_data['base'] ]['preview_applied_instances'][ $this->id ] );
	}

Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.