BP_Groups_Group::get_admins()

Get a list of the group’s admins.

Description

Used to provide cache-friendly access to the ‘admins’ property of the group object.

Return

(array|null)

Source

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

532
533
534
535
536
537
538
539
protected function get_admins() {
    if ( isset( $this->admins ) ) {
        return $this->admins;
    }
 
    $this->set_up_admins_and_mods();
    return $this->admins;
}

Changelog

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