On this page
delete_site_option( string $option ): bool
Removes a option by name for the current network.
Description
See also
Parameters
$optionstring 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. View all references
function delete_site_option( $option ) {
return delete_network_option( null, $option );
}
Related
Uses
| Uses | Description |
|---|---|
| delete_network_option() wp-includes/option.php | Removes a network option by name. |
Used By
| Used By | Description |
|---|---|
| upgrade_network() wp-admin/includes/upgrade.php | Executes network-level upgrade routines. |
| update_core() wp-admin/includes/update-core.php | Upgrades the core of WordPress. |
| delete_site_transient() wp-includes/option.php | Deletes a site transient. |
| get_site_transient() wp-includes/option.php | Retrieves the value of a site transient. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Modified into wrapper for delete_network_option() |
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/delete_site_option