Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
default_option_{$option} - 过滤选项的默认值 - WordPress钩子 - WordPress动力
当前浏览:首页 / WordPress钩子 / default_option_{$option}

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

过滤选项的默认值


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "433c1bb3c2eb487ce45e22591ede161b" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "925eb4dd112d310a212174f2ce78e60e" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

default

option 选项more...


描述

钩子名称的动态部分$option指的是选项名称。


参数

$defaultmixed
如果数据库中不存在该选项,将被返回的默认值。
$optionstring
选项名称
$passed_defaultbool
get_option()是否传递了默认值?


源码

查看源码 官方文档


更新日志

版本描述
4.7.0添加$passed_default参数是为了区分false值和默认参数值。
4.4.0添加了$option参数。
3.4.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194