WordPress开发者和主题制作者的搜索引擎



pre_update_option_{$option} ›

Since4.4.0
已弃用n/a
apply_filters( "pre_update_option_{$option}", $value, $old_value, $option )
参数: (3)
  • (mixed) $value The new, unserialized option value.
    Required: Yes
  • (mixed) $old_value The old option value.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
定义在:
文档:

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.





源码

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