add_site_option()
最后更新于:2021-11-25 19:41:42
add_site_option( string$option, mixed$value)Adds a new option for the current network.
参数
- $option
-
(string) (Required) Name of the option to add. Expected to not be SQL-escaped.
- $value
-
(mixed) (Required) Option value, can be anything. Expected to not be SQL-escaped.
响应
(bool) True if the option was added, false otherwise.
源文件
文件: gc-includes/option.php
function add_site_option( $option, $value ) {
return add_network_option( null, $option, $value );
}