bbp_delete_options

Delete default options.

Description

bbp_delete_options(); 

Hooked to bbp_uninstall, it is only called once when bbPress is uninstalled. This is destructive, so existing settings will be destroyed.


Usage

  1. if ( !function_exists( 'bbp_delete_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_delete_options(); 
  7.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_delete_options() { 
  2.  
  3. // Add default options 
  4. foreach ( array_keys( bbp_get_default_options() ) as $key ) 
  5. delete_option( $key ); 
  6.  
  7. // Allow previously activated plugins to append their own options. 
  8. do_action( 'bbp_delete_options' );