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



update_option_{$option} ›

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

Fires after the value of a specific option has been successfully updated.

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





源码

do_action( "update_option_{$option}", $old_value, $value, $option );