delete_site_option
Removes a option by name for the current network.
Description
delete_site_option( (string) $option );
Parameters (1)
- 0. $option (string)
- Name of option to remove. Expected to not be SQL-escaped.
Usage
if ( !function_exists( 'delete_site_option' ) ) { require_once ABSPATH . WPINC . '/option.php'; } // Name of option to remove. Expected to not be SQL-escaped. $option = ''; // NOTICE! Understand what this does before running. $result = delete_site_option($option);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/option.php
- function delete_site_option( $option ) {
- return delete_network_option( null, $option );
- }