bp_get_total_member_count()
Return the total member count in your BP instance.
Description Description
Since BuddyPress 1.6, this function has used bp_core_get_active_member_count(), which counts non-spam, non-deleted users who have last_activity. This value will correctly match the total member count number used for pagination on member directories.
Before BuddyPress 1.6, this function used bp_core_get_total_member_count(), which did not take into account last_activity, and thus often resulted in higher counts than shown by member directory pagination.
Return Return
(int) Member count.
Source Source
File: bp-core/bp-core-template.php
function bp_get_total_member_count() {
/**
* Filters the total member count in your BP instance.
*
* @since 1.2.0
*
* @param int $value Member count.
*/
return apply_filters( 'bp_get_total_member_count', bp_core_get_active_member_count() );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |