Core Function
View Source on Trac ↗ get_network_option()
get_network_option( mixed $network_id, mixed $option, mixed $default_value = false ) Retrieves a network's option value based on the option name.
Parameters 2 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 retrieve. Expected to not be SQL-escaped. Required |
| $default_value mixed | Optional. Value to return if the option doesn't exist. Default false. |
Return Value
(mixed)
Value set for the option.
Function Information
Since Version
4.4.0
Source File
wp-includes/option.php
Advertisement