Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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.

Это также хорошо поддерживает мультисайт.

Вот и все. Никаких дополнительных настроек.

Если вы хотите внести свой вклад в этот плагин, не стесняйтесь посмотреть репозиторий Github: https://github.com/chrneumann/multiple-roles

Скриншоты

  • The roles checklist on Edit User screens
  • The Users screen with the enhanced Roles column

Установка

Автоматическая установка

  1. Войдите в административную часть своего WordPress и перейдите в раздел Плагины -> Добавить новый
  2. Поиск по «Multiple Roles»
  3. Кликните «Установить» напротив плагина Multiple Roles
  4. Кликните «Активировать сейчас»

Ручная установка

  1. Загрузите плагин с помощью кнопки загрузки на этой странице
  2. Распакуйте zip-файл и загрузите извлеченную папку multiple-roles в вашу папку /wp-content/plugins
  3. Авторизуйтесь в вашу панель управления WordPress и перейдите в раздел Плагины
  4. Кликните «Активировать» напротив Multiple Roles плагина

Часто задаваемые вопросы

Кто может редактировать роли пользователей?

Любой, у кого есть возможность promote_users. По умолчанию это означает, что только обычные администраторы и администраторы мультисайтов.

Можно ли редактировать свои роли?

Если вы являетесь администратором мультисайта, да, вы можете редактировать свои роли на сайтах этой сети. В противном случае нет. Так обычно работает WordPress.

Я нахожусь на странице редактирования пользователей — где я могу найти чеклист ролей?

Он находится под профилем по умолчанию, под заголовком «Разрешения». Если вы по-прежнему не можете его найти, возможно, вы находитесь на странице своего профиля или у вас нет возможности promote_users.

Могу ли я удалить все роли с пользователя?

Конечно. Пользователь по-прежнему сможет входить в систему и выходить из нее, но не сможет получить доступ к каким-либо экранам администратора или просмотреть личные страницы. Однако пользователь по-прежнему сможет видеть панель инструментов WP по умолчанию, которая отображает ссылки на экран консоли управления и профиля, поэтому нажатие на них приведет к отображению ошибки доступа.

Отзывы

04.05.2018
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.
Посмотреть все 13 отзывов

Участники и разработчики

«Multiple Roles» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Multiple Roles» переведён на 8 языков. Благодарим переводчиков за их работу.

Перевести «Multiple Roles» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

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 for the contributions

1.2.0

  • 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

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