WP_Customize_Widgets::start_capturing_option_updates()protectedWP 3.9.0

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

Method of the class: WP_Customize_Widgets{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->start_capturing_option_updates();

Changelog

Since 3.9.0 Introduced.

WP_Customize_Widgets::start_capturing_option_updates() code WP 6.5.2

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