Starting in BuddyPress 7.0.0, community administrators will be able to assign more than one member type directly from the user’s WP-Admin/Extended profile page.
The regular select box of the Member Type metabox has been replaced by a multiple select box so that you can assign as many member types as you need to a single user.
Be aware of a change we made to the Member Types bulk actions behavior.
Community Administrators can bulk assign a member type to a list of users from the corresponding Administration screen by:
- activating the corresponding checkboxes at the left of users avatars.
- selecting the Member Type name from the Member Types dropdown list that is located over or under the users table.
- clicking on the change button immediately at the right of this dropdown list.
This strictly means you are changing the existing member type(s) of a user to the selected member type. In other words, if the user nicknamed imath was selected, he would be reassigned to the Lead Developer member type only (and lose the Pizza lover one 🍕).
If you choose the “No Member Type” option, then all the assigned member types of the selected user(s) will be removed.
If you want to read about how this change was made and thank the contributors who made it happen, head over this trac ticket.
By the way, did you know you’ll be able to create, edit, delete Member & Group Types directly from your WordPress Administration in BuddyPress 7.0.0 ?
Member types were introduced in version 2.2 and Group Types arrived in 2.6. These two BP types let BuddyPress developers and advanced users organize the members and the groups of their community site in smaller populations according to something they have in common. The site of an open source project could use Member types to inform about who is a maintainer, a committer, a lead etc.
So far BuddyPress types registration was only happening using code within a plugin, a must use plugin, a theme or a bp-custom.php file.
In BuddyPress 7.0.0 site administrators will be able to add, edit or delete Member and Group types using their WordPress Administration Screens just like they would do for Post tags.
The member type administration screens are available from a “Users” submenu and the Group ones from a “Groups” submenu as shown into the above screen capture.
Adding a type
Updating a type
Deleting a type
Some types cannot be deleted?
Types registered using code can only be edited. To delete such a type, you’ll need to deactivate the Plugin/Theme or remove the custom code generating the BP Type first.
PS: all above screen captures are showing Member type Administration Screens. Group type ones are very similar. The only differences are the available fields to customize the type behavior.
Want to play ahead with these Administration Screens?
You can test them from our development version. If you find some bugs or possible improvements, don’t hesitate to contribute to this feature. Tickets and patches are very welcome.
Interested about the feature’s development story?
- You can read the Member Type’s Admin UI story from this ticket #7181.
- You can read the Group Type’s Admin UI story from this ticket #7179.
#7-0-0, #group-types, #member-types
BuddyPress 2.2 will introduce the basics of a Member Type API. The primary goal of the API is to provide a common framework for the storage and retrieval of arbitrary member types, a common task on BuddyPress sites. See #6006 for more background.
The new Member Types page on the BP Codex outlines the details of the API, so that developers can get acquainted with the new tools.
In BuddyPress 2.2, BP will provide native support for a number of features beyond the mere fetching/storage of member type data. When BP detects that member types have been registered by a plugin/theme, the following items will be exposed:
- Member queries (
BP_User_Query) can be filtered by
'member_type'. This allows developers to filter member lists in directories and elsewhere.
- A Member Type metabox will appear on each user’s Community Profile page in Dashboard > Users. Admins can use this metabox to view and change the member type for the current user.
We think that these tools will serve as the foundation for various new features in plugins, themes, and in future versions of BP itself. See, for example, #5192 (show different xprofile fields to different types of members) and #6060 (on Dashboard > Users, display member types and allow filtering by member type). Developers: as you start using this framework, we hope you’ll provide us with feedback and ideas for improving it in future releases.
#2-2, #5192, #6006, #6060, #member-types