groups_get_total_group_count()

Get the total group count for the site.

Description

Return

(int)

Source

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

939
940
941
942
943
944
945
946
947
948
function groups_get_total_group_count() {
    $count = wp_cache_get( 'bp_total_group_count', 'bp' );
 
    if ( false === $count ) {
        $count = BP_Groups_Group::get_total_group_count();
        wp_cache_set( 'bp_total_group_count', $count, 'bp' );
    }
 
    return $count;
}

Changelog

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