bbp_get_total_users()

Get the total number of users on the forums

Description

Return

(int) Total number of users

Source

File: bp-forums/users/functions.php

function bbp_get_total_users() {
	$user_count = count_users();
	return apply_filters( 'bbp_get_total_users', (int) $user_count['total_users'] );
}

Changelog

Changelog
Version Description
bbPress (r2769) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.