BP_Groups_Template::has_groups()

Whether there are groups available in the loop.

Description

See also

Return

(bool) True if there are items in the loop, otherwise false.

Source

File: bp-groups/classes/class-bp-groups-template.php

318
319
320
321
322
323
324
function has_groups() {
    if ( $this->group_count ) {
        return true;
    }
 
    return false;
}

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.