delete_site_option( string $option ): bool

Removes an option by name for the current network.

Description

See also

Parameters

$optionstringrequired
Name of the option to delete. Expected to not be SQL-escaped.

Return

bool True if the option was deleted, false otherwise.

Source

function delete_site_option( $option ) {
	return delete_network_option( null, $option );
}

Changelog

VersionDescription
4.4.0Modified into wrapper for delete_network_option()
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.