default_option_{$option}

最后更新于:2021-11-26 04:50:20

apply_filters( “default_option_{$option}”, mixed $default, string $option, bool $passed_default )

Filters the default value for an option.

参数

$default

(mixed)
The default value to return if the option does not exist in the database.

$option

(string)
Option name.

$passed_default

(bool)
Was get_option() passed a default value?

源文件

文件: gc-includes/option.php

View on Trac