On this page
apply_filters( 'pre_update_option', mixed $value, string $option, mixed $old_value )
Filters an option before its value is (maybe) serialized and updated.
Parameters
$valuemixed-
The new, unserialized option value.
$optionstring-
Name of the option.
$old_valuemixed-
The old option value.
Source
File: wp-includes/option.php. View all references
$value = apply_filters( 'pre_update_option', $value, $option, $old_value );
Related
Used By
| Used By | Description |
|---|---|
| update_option() wp-includes/option.php | Updates the value of an option that was already added. |
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