Created
April 22, 2019 20:19
-
-
Save KaineLabs/b420b0bc493219845a797794ab56a30e to your computer and use it in GitHub Desktop.
Get Groups 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 | |
/** | |
* Get Groups Total Count | |
*/ | |
function yzc_get_total_groups_shortcode( $args = null ) { | |
if ( ! bp_is_active( 'groups' ) ) { | |
return 0; | |
} | |
return bp_get_total_group_count(); | |
} | |
add_shortcode( 'yz_total_groups', 'yzc_get_total_groups_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment