WP_Customize_Widgets::start_capturing_option_updates() WordPress Method

The WP_Customize_Widgets::start_capturing_option_updates() Wordpress method is used to start capturing widget setting changes so that they can be updated in the Customizer preview. This is useful for ensuring that changes made in the Customizer preview are reflected in the front-end of the site.

WP_Customize_Widgets::start_capturing_option_updates() #

Begins keeping track of changes to widget options, caching new values.


Source

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

	protected function start_capturing_option_updates() {
		if ( $this->_is_capturing_option_updates ) {
			return;
		}

		$this->_is_capturing_option_updates = true;

		add_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.9.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.