Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/7e5cf72cc957f9c692171c43e4bc533a to your computer and use it in GitHub Desktop.
Save KaineLabs/7e5cf72cc957f9c692171c43e4bc533a to your computer and use it in GitHub Desktop.
Include Non Active Users In Members Total Count.
<?php
/**
* Include Non Active Users In Members Total Count.
*/
function yzc_include_non_active_members_in_total_members_count( $count ) {
$count = count_users();
return $count['total_users'];
}
add_filter( 'bp_get_total_member_count', 'yzc_include_non_active_members_in_total_members_count');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment