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



wp_default_autoload_value › WordPress过滤钩子

Since6.6.0
已弃用n/a
› apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value )
参数: (4)
  • () autoload The default autoload value to set. Returning true will be set as 'auto-on' in the database, false will be set as 'auto-off', and null will be set as 'auto'.
    Required: Yes
  • () option The passed option name.
    Required: Yes
  • () value The passed option value to be saved.
    Required: Yes
  • () serialized_value The passed option value to be saved, in serialized form.
    Required: Yes
定义在:
文档:

Allows to determine the default autoload value for an option where no explicit value is passed.





源码

$autoload = apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value );