bb_delete_all_user_settings

Delete the user settings of the current user.

Description

bb_delete_all_user_settings(); 

Usage

  1. if ( !function_exists( 'bb_delete_all_user_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-meta.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_delete_all_user_settings(); 
  7.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-meta.php  
  1. function bb_delete_all_user_settings() 
  2. if ( !$user = bb_get_current_user() ) { 
  3. return; 
  4.  
  5. setcookie( 'bb-user-settings-' . $user->ID, ' ', time() - 31536000, $bb->cookiepath );