首页 WordPress函数大全 filter_default_option()

filter_default_option()

2020-05-01 / 3056阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

filter_default_option( mixed $default, string $option, bool $passed_default )

Filters the default value for the option.

描述

For settings which register a default setting in register_setting(), this function is added as a filter to default_option_{$option}.

参数

$default

(mixed)
(Required)
Existing default value to return.

$option

(string)
(Required)
Option name.

$passed_default

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

返回

(mixed) Filtered default value.

大家谈论
    我的见解