WordPress at a glance
filter is not described

pre_update_option filter-hook . WP 3.9.0

Filters an option before its value is (maybe) serialized and updated.


add_filter( 'pre_update_option', 'filter_function_name_3353', 10, 3 );
function filter_function_name_3353( $value, $option, $old_value ){
	// filter...

	return $value;
The new, unserialized option value.
Name of the option.
The old option value.

Where the hook is called

wp-includes/option.php 332
$value = apply_filters( 'pre_update_option', $value, $option, $old_value );

Where the hook is used (in WP core)

wp-includes/class-wp-customize-widgets.php 1956
add_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 );
wp-includes/class-wp-customize-widgets.php 2014
remove_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10 );