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
$valuemixed- The new, unserialized option value.
$old_valuemixed- The old option value.
$optionstring- Option name.
Source
$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );
Example migrated from Codex: