wpseek.com
WordPress开发者和主题制作者的搜索引擎



add_site_option › WordPress Function

Since2.8.0
已弃用n/a
add_site_option ( $option, $value )
参数: (2)
  • (string) $option Name of the option to add. Expected to not be SQL-escaped.
    Required: Yes
  • (mixed) $value Option value, can be anything. Expected to not be SQL-escaped.
    Required: Yes
查看:
返回:
  • (bool) True if the option was added, false otherwise.
定义在:
文档:
Change Log:
  • 4.4.0

Adds a new option for the current network.

Existing options will not be updated. Note that prior to 3.3 this wasn't the case.


源码

function add_site_option( $option, $value ) {
	return add_network_option( null, $option, $value );
}