Function: delete_network_option

delete_network_option( integer $network_id, string $option )

Removes a network option by name.


Name Type(s) Default Value Description
$network_id integer

ID of the network. Can be null to default to the current network ID.

$option string

Name of option to remove. Expected to not be SQL-escaped.



True, if succeed. False, if failure.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.