bbp_get_total_users

Get the total number of users on the forums.

Description

(int) bbp_get_total_users(); 

Returns (int)

Total number of users


Usage

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

Defined (1)

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

/includes/users/functions.php  
  1. function bbp_get_total_users() { 
  2. $user_count = count_users(); 
  3. return apply_filters( 'bbp_get_total_users', (int) $user_count['total_users'] );