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_valuemixed
The old option value.
$valuemixed
The new option value.
$optionstring
Option name.

Source

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

Changelog

VersionDescription
4.4.0The $option parameter was added.
2.0.1Introduced.

User Contributed Notes

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