Core Function
View Source on Trac ↗ add_network_option()
add_network_option( mixed $network_id, mixed $option, mixed $value ) Adds a new network option.
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 to add. Expected to not be SQL-escaped. Required |
| $value mixed | Option value, can be anything. Expected to not be SQL-escaped. Required |
Return Value
(bool)
True if the option was added, false otherwise.
Function Information
Since Version
4.4.0
Source File
wp-includes/option.php
Advertisement