bbp_get_total_users

  • apply_filters( 'bbp_get_total_users', (int) $bbp_total_users )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-functions.php :: Trac Source Line: 928
      	global $wpdb;
      
      	if ( $bbp_total_users = wp_cache_get( 'bbp_total_users', 'bbpress' ) )
      		return $bbp_total_users;
      
      	$bbp_total_users = $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->users} USE INDEX (PRIMARY);" );
      
      	wp_cache_set( 'bbp_total_users', $bbp_total_users, 'bbpress' );
      
      	return apply_filters( 'bbp_get_total_users', (int) $bbp_total_users );
      }
      
      /** User Status ***************************************************************/
      
      /**
       * Checks if the user has been marked as a spammer.
       *
       * @since bbPress (r3355)
       *
       * @param int $user_id int The ID for the user.
      

Comments are closed.