wppaste
WordPress

WP_Customize_Widgets::stop_capturing_option_updates()

Since
3.9.0
Source
wp-includes/class-wp-customize-widgets.php:2191
Undoes any changes to the options since options capture began.

Uses · 1

Used by · 1

Source

	protected function stop_capturing_option_updates() {		if ( ! $this->_is_capturing_option_updates ) {			return;		} 		remove_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10 ); 		foreach ( array_keys( $this->_captured_options ) as $option_name ) {			remove_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) );		} 		$this->_captured_options            = array();		$this->_is_capturing_option_updates = false;	}

History

Introduced in 3.9.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-customize-widgets.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.