W3cubDocs

/WordPress

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 on Trac

Changelog

Version Description
3.9.0 Introduced.

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