Title: Multiple Roles
Author: Christian Neumann
Published: <strong>2015 年 3 月 12 日</strong>
Last modified: 2025 年 8 月 5 日

---

搜索插件

![](https://ps.w.org/multiple-roles/assets/banner-772x250.png?rev=2334065)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/multiple-roles_182732.svg)

# Multiple Roles

 作者：[Christian Neumann](https://profiles.wordpress.org/cneumann/)

[下载](https://downloads.wordpress.org/plugin/multiple-roles.1.3.7.zip)

 * [详情](https://cn.wordpress.org/plugins/multiple-roles/#description)
 * [评价](https://cn.wordpress.org/plugins/multiple-roles/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/multiple-roles/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/multiple-roles/#developers)

 [支持](https://wordpress.org/support/plugin/multiple-roles/)

## 描述

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

## 屏幕截图

[⌊The roles checklist on Edit User screens⌉⌊The roles checklist on Edit User screens⌉[

The roles checklist on Edit User screens

[⌊The Users screen with the enhanced Roles column⌉⌊The Users screen with the enhanced
Roles column⌉[

The Users screen with the enhanced Roles column

## 安装

#### Automatic Install

 1. Log into your WordPress dashboard and go to Plugins → Add New
 2. Search for “Multiple Roles”
 3. Click “Install Now” under the Multiple Roles plugin
 4. Click “Activate Now”

#### Manual Install

 1. Download the plugin from the download button on this page
 2. Unzip the file, and upload the resulting `multiple-roles` folder to your `/wp-content/
    plugins` directory
 3. Log into your WordPress dashboard and go to Plugins
 4. Click “Activate” under the Multiple Roles plugin

## 常见问题

### Who can edit users roles?

Anyone with the `promote_users` capability. 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 `promote_users` capability.

### 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.

## 评价

![](https://secure.gravatar.com/avatar/6cfc8c01f1ea3a75ec6f7dba8f2a014ef4cca4fd63a50fb3c8772e492e472ecc?
s=60&d=retro&r=g)

### 󠀁[It is Simple and Does the Job](https://wordpress.org/support/topic/it-is-simple-and-does-the-job/)󠁿

 [Dennis Bareis](https://profiles.wordpress.org/dbareis/) 2025 年 7 月 31 日

Not much to say, does exactly what is says

![](https://secure.gravatar.com/avatar/b675b281178c5d586081778ce46cfa88bbd662be2511c19627b1eafe7bbd2303?
s=60&d=retro&r=g)

### 󠀁[SIMPLE AND WORKS](https://wordpress.org/support/topic/simple-and-works-221/)󠁿

 [multmediadesigns](https://profiles.wordpress.org/multmediadesigns/) 2023 年 11
月 28 日

Simple and to the point. Did exactly what I needed.

![](https://secure.gravatar.com/avatar/a5c33bb9a116300d461beff09d3e2734418f3a7284c38d2a44058c2acba16551?
s=60&d=retro&r=g)

### 󠀁[Elegant, simple .. great plugin](https://wordpress.org/support/topic/elegant-simple-great-plugin/)󠁿

 [thomasprice61](https://profiles.wordpress.org/thomasprice61/) 2020 年 7 月 7 日

Elegant and simple .. a great plugin

![](https://secure.gravatar.com/avatar/c874554957015d988301bf460088590e691380d1234b2c0bb804905e219fcb6e?
s=60&d=retro&r=g)

### 󠀁[Cleanest way to assign multiple roles](https://wordpress.org/support/topic/cleanest-way-to-assign-multiple-roles/)󠁿

 [Old account](https://profiles.wordpress.org/dargus/) 2020 年 7 月 1 日

Thank you for this plugin, this is the cleanest interface to add multiple roles 
that I’ve seen. The popular User Role Editor plugin should take this as an example
of good UX.

![](https://secure.gravatar.com/avatar/7c3f4b07d1a7b78686c16ed4c75318d3382a3fe62b5d96fd177aed4153e6eca8?
s=60&d=retro&r=g)

### 󠀁[Works perfectly every time](https://wordpress.org/support/topic/works-perfectly-every-time-4/)󠁿

 [Monique](https://profiles.wordpress.org/oddsheep/) 2018 年 5 月 18 日

Great plugin. Used on multiple sites now and it works perfectly every time

![](https://secure.gravatar.com/avatar/03773b693837956d0a98c18c1ef510b8fa2f4c80d9cf81a1da7b2bdddeee78ea?
s=60&d=retro&r=g)

### 󠀁[Performance Degradation](https://wordpress.org/support/topic/performance-degradation/)󠁿

 [ssheward](https://profiles.wordpress.org/ssheward/) 2018 年 5 月 4 日

Installed this on my 4.9.5 site and performance was severely degraded. This was 
the first thing I disabled in order to troubleshoot and it was like night and day.
Recommend finding an alternate solution unless this issue is addressed.

 [ 阅读所有15条评价 ](https://wordpress.org/support/plugin/multiple-roles/reviews/)

## 贡献者及开发者

「Multiple Roles」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Christian Neumann ](https://profiles.wordpress.org/cneumann/)
 *   [ Michael Dance ](https://profiles.wordpress.org/seventhsteel/)
 *   [ Florian TIAR ](https://profiles.wordpress.org/mista-flo/)

「Multiple Roles」插件已被翻译至 8 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/multiple-roles/contributors)
为本插件所做的贡献。

[帮助将「Multiple Roles」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multiple-roles)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/multiple-roles/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/multiple-roles/)，或通过[RSS](https://plugins.trac.wordpress.org/log/multiple-roles/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/multiple-roles/)。

## 更新日志

#### 1.3.6 / 1.3.7

 * 1st june 2022
 * SECURITY FIX: Validate that the user is allowed to change selected roles

#### 1.3.5

 * 27th may 2022
 * Test the plugin against WordPress 6.0
 * Fix open issues with sanitizing text

#### 1.3.4

 * 25th may 2022
 * Add new plugin maintainer: cneumann

#### 1.3.2

 * 30th june 2021
 * Test the plugin against WordPress 5.7
 * Fix the use of nonce for two functions

#### 1.3.1

 * 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

#### 1.3.0

 * 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](https://github.com/thomasfw/) for the contributions

#### 1.2.0

 * 21 august 2017
 * Check compatibilty with WP 4.8.1
 * Translation of roles names : thanks to [Benjamin Niess](https://profiles.wordpress.org/benjaminniess/)
 * Mutlisite enhancement : Use a WP 4.8 filter to easier edit signup user meta

#### 1.1.4

 * 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

#### 1.1.3

 * 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

#### 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

#### 1.1.1

 * 3 november 2016
 * Remove PHP closure to ensure Backward Compatibility with PHP versions < 5.3

#### 1.1

 * 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

#### 1.0

 * 2015
 * Initial release

## 额外信息

 *  版本 **1.3.7**
 *  最后更新：**10 月前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **6.3.8**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/multiple-roles/) 、 [English (US)](https://wordpress.org/plugins/multiple-roles/)、
   [French (France)](https://fr.wordpress.org/plugins/multiple-roles/) 、 [German](https://de.wordpress.org/plugins/multiple-roles/)、
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/multiple-roles/) 、 [Russian](https://ru.wordpress.org/plugins/multiple-roles/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/multiple-roles/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/multiple-roles/)
   和 [Ukrainian](https://uk.wordpress.org/plugins/multiple-roles/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/multiple-roles)
 * 标签
 * [multiple roles](https://cn.wordpress.org/plugins/tags/multiple-roles/)[user roles](https://cn.wordpress.org/plugins/tags/user-roles/)
 *  [高级视图](https://cn.wordpress.org/plugins/multiple-roles/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  14 条 5 星评价     ](https://wordpress.org/support/plugin/multiple-roles/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/multiple-roles/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/multiple-roles/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/multiple-roles/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/multiple-roles/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/multiple-roles/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/multiple-roles/reviews/)

## 贡献者

 *   [ Christian Neumann ](https://profiles.wordpress.org/cneumann/)
 *   [ Michael Dance ](https://profiles.wordpress.org/seventhsteel/)
 *   [ Florian TIAR ](https://profiles.wordpress.org/mista-flo/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/multiple-roles/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/musendisco)