WordPress at Your Fingertips
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_267', 10, 3 );
function filter_function_name_267( $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 441
$value = apply_filters( 'pre_update_option', $value, $option, $old_value );

Where in WP core the hook is used WordPress

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