bbp_get_default_user_options

Get the default user options and their values.

Description

(array) bbp_get_default_user_options(); 

Returns (array)

Filtered user option names and values


Usage

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

Defined (1)

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

/includes/users/options.php  
  1. function bbp_get_default_user_options() { 
  2.  
  3. // Default options 
  4. return apply_filters( 'bbp_get_default_user_options', array( 
  5. '_bbp_last_posted' => '0', // For checking flooding 
  6. '_bbp_topic_count' => '0', // Total topics per site 
  7. '_bbp_reply_count' => '0', // Total replies per site 
  8. '_bbp_favorites' => '', // Favorite topics per site 
  9. '_bbp_subscriptions' => '' // Subscribed topics per site 
  10. ) );