WP_Customize_Widgets::stop_capturing_option_updates() protected WP 3.9.0
Undoes any changes to the options since options capture began.
{} Это метод класса: WP_Customize_Widgets{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->stop_capturing_option_updates();
Список изменений
С версии 3.9.0 | Введена. |
Код WP_Customize_Widgets::stop_capturing_option_updates() WP Customize Widgets::stop capturing option updates WP 5.6.2
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;
}