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