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



add_option_{$option} ›

Since3.0.0
已弃用n/a
do_action( "add_option_{$option}", $option, $value )
参数: (2)
  • (string) $option Name of the option to add.
    Required: Yes
  • (mixed) $value Value of the option.
    Required: Yes
定义在:
文档:

Fires after a specific option has been added.

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





源码

do_action( "add_option_{$option}", $option, $value );