wordpress / latest / hooks / update_option.html

do_action( 'update_option', string $option, mixed $old_value, mixed $value )

Fires immediately before an option value is updated.

Parameters

$option string
Name of the option to update.
$old_value mixed
The old option value.
$value mixed
The new option value.

Source

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

do_action( 'update_option', $option, $old_value, $value );

Used By

Used By Description

Changelog

Version Description
2.9.0 Introduced.

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