add_network_option
add_network_option ( $network_id, $option, $value )
Parameters:- (int) network_id ID of the network. Can be null to default to the current network ID.
- (string) option Name of the option to add. Expected to not be SQL-escaped.
- (mixed) value Option value, can be anything. Expected to not be SQL-escaped.
See:Returns:- (bool) True if the option was added, false otherwise.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Adds a new network option.Existing options will not be updated.