Filters a specific option before its value is (maybe) serialized and updated.
Description
The dynamic portion of the hook name, $option
, refers to the option name.
Parameters
$value
mixed- The new, unserialized option value.
$old_value
mixed- The old option value.
$option
string- Option name.
Source
$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );
Example migrated from Codex: