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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |