W3cubDocs

/WordPress

do_action( "update_option_{$option}", mixed $old_value, mixed $value, string $option )

Fires after the value of a specific option has been successfully updated.

Description

The dynamic portion of the hook name, $option, refers to the option name.

Parameters

$old_value

(mixed) The old option value.

$value

(mixed) The new option value.

$option

(string) Option name.

Source

File: wp-includes/option.php

View on Trac

Changelog

Version Description
4.4.0 The $option parameter was added.
2.0.1 Introduced.

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