过滤器::过滤选项的默认值。
apply_filters ( “default_option_{$option}”, mixed $default , string $option , bool $passed_default )
说明(Description)
钩子名$option的动态部分引用选项名。
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $default | (mixed) | 如果数据库中不存在该选项,则返回的默认值。 |
| $option | (string) | 选项名称。 |
| $passed_default | (bool) | get_option()是否传递了默认值? |
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.7.0 | wp-includes/option.php:89 | 3 | 0 |





















