do_action( ‘updated_option’, string $option, mixed $old_value, mixed $value )

In this article

Fires after the value of an option has been successfully updated.

Parameters

$optionstring
Name of the updated option.
$old_valuemixed
The old option value.
$valuemixed
The new option value.

Source

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

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.