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



pre_update_option ›

Since3.9.0
已弃用n/a
apply_filters( 'pre_update_option', $value, $option, $old_value )
参数: (3)
  • (mixed) $value The new, unserialized option value.
    Required: Yes
  • (string) $option Name of the option.
    Required: Yes
  • (mixed) $old_value The old option value.
    Required: Yes
定义在:
文档:

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





源码

$value = apply_filters( 'pre_update_option', $value, $option, $old_value );