BuddyDev

Search

Want to add users as BuddyPress group admin based on their member types? It’s easy.

BuddyPress Member Types Pro plugin takes care of adding user as group member. All we need to do is upgrade the membership as group admin or moderator.

The code works by taking a map of member type to group role. You only need to specify the map for the group admin and moderator role.

Here is the code.

It fetches the list of group associated with a member type and upgrades the user role as group admin/mod based on your preference.

Subscribe