Function: update_site_option

update_site_option( string $option, mixed $value )

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

Parameters

Name Type(s) Default Value Description
$option string

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

$value mixed

Option value. Expected to not be SQL-escaped.

Returns

boolean

False if value was not updated. True if value was updated.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.