delete_site_option() WordPress Function
The delete_site_option() function deletes a specified option from the current site's options database table. The function takes two parameters: the option name (string) and the site ID (integer). If the site ID is not specified, the current site's ID is used.
delete_site_option( string $option ) #
Removes a option by name for the current network.
Description
See also
Parameters
- $option
(string)(Required)Name of the option to delete. Expected to not be SQL-escaped.
Return
(bool) True if the option was deleted, false otherwise.
Source
File: wp-includes/option.php
function delete_site_option( $option ) { return delete_network_option( null, $option ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Modified into wrapper for delete_network_option() |
2.8.0 | Introduced. |