bp_core_get_all_member_count()

Return the total number of members for the installation.

Description

Return

(int) The total number of members.

Source

File: bp-members/bp-members-functions.php

645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
function bp_core_get_all_member_count() {
    add_filter( 'bp_ajax_querystring', 'bp_member_object_template_results_members_all_scope', 20, 2 );
    bp_has_members( bp_ajax_querystring( 'members' ) );
    $count = $GLOBALS["members_template"]->total_member_count;
    remove_filter( 'bp_ajax_querystring', 'bp_member_object_template_results_members_all_scope', 20, 2 );
 
    /**
     * Filters the total number of members for the installation.
     *
     * @since BuddyPress 1.2.9.1
     *
     * @param int $count Total number of members.
     */
    return apply_filters( 'bp_core_get_all_member_count', $count );
}

Changelog

Changelog
Version Description
BuddyPress 1.2.9.1 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.