WPDev.one
Core Function
View Source on Trac ↗

update_network_option()

update_network_option( mixed $network_id, mixed $option, mixed $value )

Updates the value of a network option that was already added.

Parameters 3 required

Name / Type Description
(int

| null) $network_id ID of the network. Can be null to default to the current network ID.

Required
$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
4.4.0
Source File
wp-includes/option.php
Advertisement