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



update_option ›

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

Fires immediately before an option value is updated.





源码

do_action( 'update_option', $option, $old_value, $value );