pre_site_option_{$option}
最后更新于:2021-11-27 20:06:30
apply_filters( “pre_site_option_{$option}”, mixed $pre_option, string $option, int $network_id, mixed $default )
Filters the value of an existing network option before it is retrieved.
参数
- $pre_option
-
(mixed)
The value to return instead of the option value. This differs from$default
, which is used as the fallback value in the event the option doesn’t exist elsewhere in get_network_option(). Default false (to skip past the short-circuit). - $option
-
(string)
Option name. - $network_id
-
(int)
ID of the network. - $default
-
(mixed)
The fallback value to return if the option does not exist. Default false.
源文件
文件: gc-includes/option.php