Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/21/2019 06:45:26 PM (6 years ago)
Author:
imath
Message:

Introduce a new User Interface to manage Group members

Welcome to the first Core feature to use the BP REST API, although this API is not yet included in BuddyPress! For now this feature is completely silent but as soon as the BP REST API has landed into BuddyPress, you will be able to enjoy a Group member management greatly improved.

  1. Whether you prefer to manage Group members from the single Group Administration screen into the WordPress back-end or from the Group Manage screen on the front-end, you will now experience a unique interface to promote, demote, remove or ban the Group members.
  2. Very popular Group Administrators will love the new search feature to save some time to find a particular member out of their crowded Group!

On a side note, this commit also introduces the bp-api-request.js JavaScript to ease exchanges with the BP REST API.

Props espellcaste

Fixes #8045

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r12395 r12405  
    11131113
    11141114/**
     1115 * Get the Group roles.
     1116 *
     1117 * @since 5.0.0
     1118 *
     1119 * @return array The list of Group role objects.
     1120 */
     1121function bp_groups_get_group_roles() {
     1122    return array(
     1123        'admin' => (object) array(
     1124            'id'           => 'admin',
     1125            'name'         => __( 'Administrator', 'buddypress' ),
     1126            'is_admin'     => true,
     1127            'is_banned'    => false,
     1128            'is_confirmed' => true,
     1129            'is_mod'       => false,
     1130        ),
     1131        'mod' => (object) array(
     1132            'id'           => 'mod',
     1133            'name'         => __( 'Moderator', 'buddypress' ),
     1134            'is_admin'     => false,
     1135            'is_banned'    => false,
     1136            'is_confirmed' => true,
     1137            'is_mod'       => true,
     1138        ),
     1139        'member' => (object) array(
     1140            'id'           => 'member',
     1141            'name'         => __( 'Member', 'buddypress' ),
     1142            'is_admin'     => false,
     1143            'is_banned'    => false,
     1144            'is_confirmed' => true,
     1145            'is_mod'       => false,
     1146        ),
     1147        'banned' => (object) array(
     1148            'id'           => 'banned',
     1149            'name'         => __( 'Banned', 'buddypress' ),
     1150            'is_admin'     => false,
     1151            'is_banned'    => true,
     1152            'is_confirmed' => true,
     1153            'is_mod'       => false,
     1154        ),
     1155    );
     1156}
     1157
     1158/**
    11151159 * Check whether a user is an admin of a given group.
    11161160 *
Note: See TracChangeset for help on using the changeset viewer.