WPDev.one
Core Function
View Source on Trac ↗

update_site_option()

update_site_option( mixed $option, mixed $value )

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

Parameters 2 required

Name / Type Description
$option
string

Name of the option. Expected to not be SQL-escaped.

Required
$value
mixed

Option value. Expected to not be SQL-escaped.

Required

Return Value

(bool)
True if the value was updated, false otherwise.

Function Information

Since Version
2.8.0
Source File
wp-includes/option.php
Advertisement