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



update_site_option ›

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

Update the value of an option that was already added for the current network.



源码

function update_site_option( $option, $value ) {
	return update_network_option( null, $option, $value );
}