This plugin allows you to select multiple roles for a user – something that WordPress already supports “under the hood”, but doesn’t provide a user interface for.
User edit and Add new user screens will display a checklist of roles instead of the default role dropdown. The main user list screen will also display all roles a user has.
It also supports well Multisite mode.
That’s it. No extra settings.
If you want to contribute to this plugin, feel free to check the Github repository : https://github.com/chrneumann/multiple-roles
- Log into your WordPress dashboard and go to Plugins → Add New
- Search for “Multiple Roles”
- Click “Install Now” under the Multiple Roles plugin
- Click “Activate Now”
- Download the plugin from the download button on this page
- Unzip the file, and upload the resulting
multiple-rolesfolder to your
- Log into your WordPress dashboard and go to Plugins
- Click “Activate” under the Multiple Roles plugin
Who can edit users roles?
Anyone with the
promote_userscapability. By default, that means only administrators and network administrators on multi-site.
Can you edit your own roles?
If you’re a network administrator on a multi-site setup, yes, you can edit your roles in sites of that network. Otherwise, no. This is how WordPress works normally too.
I’m on the user edit screen – where’s the checklist of roles?
It’s underneath the default profile stuff, under the heading “Permissions”. If you still can’t find it, you might be on your own profile page, or you might not have the
Can you remove all roles from a user?
Sure. The user will still be able to log in and out, but won’t be able to access any admin screens or see private pages. However, the user will still be able to see the WP Toolbar by default, which displays links to the Dashboard and Profile screens, so clicking on those will result in seeing a permission error.
Contributors & Developers
“Multiple Roles” is oopbron sagteware. Die volgende mense het bygedra tot die ontwikkeling van hierdie uitbreiding:Contributors
1.3.6 / 1.3.7
- 1st june 2022
- SECURITY FIX: Validate that the user is allowed to change selected roles
- 27th may 2022
- Test the plugin against WordPress 6.0
- Fix open issues with sanitizing text
- 25th may 2022
- Add new plugin maintainer: cneumann
- 30th june 2021
- Test the plugin against WordPress 5.7
- Fix the use of nonce for two functions
- 1st july 2020
- Test the plugin against WordPress 5.4
- Fix an issue when the user role could be lost because of a wrong check in the backend
- 12 april 2018
- Use ‘promote_users’ cap instead of ‘edit_users’
- Fixed bug preventing us from unsetting a user’s roles
- Only remove get_editable_roles() roles on update
- Thanks to thomasfw for the contributions
- 21 august 2017
- Check compatibilty with WP 4.8.1
- Translation of roles names : thanks to Benjamin Niess
- Mutlisite enhancement : Use a WP 4.8 filter to easier edit signup user meta
- 23 december 2016
- Fix fatal error in new user in single site : After adding an user, a wp_die error was shown “You can’t give users that role”, it was due to changes in 1.1.2
- Workaround to handle multisite support without breaking single site features
- 22 december 2016
- Fix fatal error in user update : After updating an user, a wp_die error was shown “You can’t give users that role”, it was due to changes in 1.1.2
- 21 december 2016
- Fix bug in multisite : After adding a new user with email confirmation, the multiple roles were not set, so the user did not have any roles on the site
- 3 november 2016
- Remove PHP closure to ensure Backward Compatibility with PHP versions < 5.3
- 24 october 2016
- New maintainer : Florian TIAR, you’re strongly encouraged to update this plugin
- Add support of role checkbox in new user form (admin)
- Add Multisite support (for new user form)
- Add i18n support (text domain, translatable strings and pot file)
- Add some hooks (actions and filters)
- Fix issue where some low level users could add admin users
- Sanitize and escape all data
- Enhance UX of the form
- Initial release