How to get total active members and total number of members in buddypress

The following example will count the total members:

<?php
echo bp_get_total_member_count();
?>

To get total active users, we can use following code:

<?php
$active_users = bp_core_get_users( array("per_page"=>-1));
echo $active_users["total"];
?>

Comments

comments

Leave a Reply