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



default_site_option_{$option} ›

Since4.7.0
已弃用n/a
apply_filters( "default_site_option_{$option}", $default, $option, $network_id )
参数: (3)
  • (mixed) $default The value to return if the site option does not exist in the database.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
  • (int) $network_id ID of the network.
    Required: Yes
定义在:
文档:

Filters a specific default network option.

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





源码

return apply_filters( "default_site_option_{$option}", $default, $option, $network_id );