wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_update_option_{$option} › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( "pre_update_option_{$option}", $value, $old_value, $option )
Parameters: (3)
  • () value The new, unserialized option value.
    Required: Yes
  • () old_value The old option value.
    Required: Yes
  • () option Option name.
    Required: Yes
Defined at:
Codex:

Filters a specific option before its value is (maybe) serialized and updated.

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




Source

$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );