This plugin helps you out if you need to have the ability to select one or more user roles. Roles can be chosen with a select element (single or multiple choice), checkboxes or radio buttons. Roles can be returned as a role name or a role object.
You also have the option of specifying allowed roles. This lets you control the roles users are allowed to select.
This ACF field type is compatible with both ACF 4 and ACF 5.
Installing this plugin automatically is the easiest option. You can install the plugin automatically by going to the plugins section in WordPress and clicking Add New. Type “ACF Role Selector” in the search bar and install the plugin by clicking the Install Now button.
- Copy the
acf-role_selector-fieldfolder into your
- Activate the Role Selector plugin via the plugins admin page
- Create a new field via ACF and select the Role Selector type
- Please refer to the description for more info regarding the field type settings
Colaboradores e desenvolvedores
“ACF: User Role Selector” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.Colaboradores
Interessado no desenvolvimento?
Registro de alterações
- Fixed an error displayed in ACF 4 when returning roles as object
- Fixed a typo which prevented checkbox fields from saving
- Updated for WordPress 4.2
- Complete rewrite of code documentation
- Fixed a bug where an empty checkbox set would not save properly
- Added hook to manipulate roles shown
- Added Hungarian translation
- Updated for WordPress 4.1
- Added ACF 5 Support
- Removed ACF 3 Support
- Fixed an undefined variable error
- Initial Release.