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

  1. if ( !function_exists( 'delete_site_option' ) ) { 
  2. require_once ABSPATH . WPINC . '/option.php'; 
  3.  
  4. // Name of option to remove. Expected to not be SQL-escaped. 
  5. $option = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = delete_site_option($option); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/option.php  
  1. function delete_site_option( $option ) { 
  2. return delete_network_option( null, $option );