bp_groups_get_group_roles()
Get the Group roles.
Description
Return
(array) The list of Group role objects.
Source
File: bp-groups/bp-groups-functions.php
function bp_groups_get_group_roles() { return array( 'admin' => (object) array( 'id' => 'admin', 'name' => __( 'Organizer', 'buddyboss' ), 'is_admin' => true, 'is_banned' => false, 'is_confirmed' => true, 'is_mod' => false, ), 'mod' => (object) array( 'id' => 'mod', 'name' => __( 'Moderator', 'buddyboss' ), 'is_admin' => false, 'is_banned' => false, 'is_confirmed' => true, 'is_mod' => true, ), 'member' => (object) array( 'id' => 'member', 'name' => __( 'Member', 'buddyboss' ), 'is_admin' => false, 'is_banned' => false, 'is_confirmed' => true, 'is_mod' => false, ), 'banned' => (object) array( 'id' => 'banned', 'name' => __( 'Banned', 'buddyboss' ), 'is_admin' => false, 'is_banned' => true, 'is_confirmed' => true, 'is_mod' => false, ), ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.3.5 | 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.