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



default_option_{$option} › WordPress过滤钩子

Since4.7.0
已弃用n/a
› apply_filters( "default_option_{$option}", $default_value, $option, $passed_default )
参数: (3)
  • () default_value The default value to return if the option does not exist in the database.
    Required: Yes
  • () option Option name.
    Required: Yes
  • () passed_default Was `get_option()` passed a default value?
    Required: Yes
定义在:
文档:

Filters the default value for an option.

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




源码

return apply_filters( "default_option_{$option}", $default_value, $option, $passed_default );