wordpress / latest / hooks / pre_update_option.html

apply_filters( 'pre_update_option', mixed $value, string $option, mixed $old_value )

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

Parameters

$value mixed
The new, unserialized option value.
$option string
Name of the option.
$old_value mixed
The old option value.

Source

File: wp-includes/option.php. View all references

$value = apply_filters( 'pre_update_option', $value, $option, $old_value );

Used By

Used By Description

Changelog

Version Description
3.9.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_update_option