Created
August 30, 2020 17:19
-
-
Save KaineLabs/7e5cf72cc957f9c692171c43e4bc533a to your computer and use it in GitHub Desktop.
Include Non Active Users In Members Total Count.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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