bb_delete_option

The BuddyPress bb delete option function.

Description

bb_delete_option( $option, (string) $value = '' ); 

Parameters (2)

0. $option
The option.
1. $value — Optional. (string) => ''
The value.

Usage

  1. if ( !function_exists( 'bb_delete_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-meta.php'; 
  3.  
  4. // The option. 
  5. $option = null; 
  6.  
  7. // The value. 
  8. $value = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_delete_option($option, $value); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-meta.php  
  1. function bb_delete_option( $option, $value = '' ) 
  2. return bb_delete_meta( 0, $option, $value, 'option', true );