W3cubDocs

/WordPress

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 );
	}

Changelog

Version Description
3.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/start_capturing_option_updates