Function: delete_site_option

delete_site_option( string $option )

Removes a option by name for the current network.

Parameters

Name Type(s) Default Value Description
$option string

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

Returns

boolean

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.