WP_Customize_Widgets::stop_capturing_option_updates()
- Since
- 3.9.0
- Source
wp-includes/class-wp-customize-widgets.php:2185
Undoes any changes to the options since options capture began.
Uses · 1
- remove_filter()Removes a callback function from a filter hook.
Used by · 1
- WP_Customize_Widgets::call_widget_update()Finds and invokes the widget update and control callbacks.
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.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.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.