Core Function
View Source on Trac ↗ delete_network_option()
delete_network_option( mixed $network_id, mixed $option ) Removes a network option by 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 delete. Expected to not be SQL-escaped. Required |
Return Value
(bool)
True if the option was deleted, false otherwise.
Function Information
Since Version
4.4.0
Source File
wp-includes/option.php
Advertisement