1

Is it possible to add an individual capability to a user account in modern versions of WordPress (4.6.1)? Or are roles the only thing that "admin manageable" for user accounts?

If it is possible, where in the admin can you do this?

  • You mean add capabilities to a specific user? codex.wordpress.org/Function_Reference/add_cap – Ahmed Fouad Sep 26 '16 at 20:40
  • @AhmedMahdi Thank you, yes, I meant capabilities (fixed in the post text). The link you provided shows how to programmatically add a capability to a user -- however, it looks like that adds the capability programmatically. I looking for an Admin UI feature that allows you to assign capabilities -- similar to how other systems allow you add individual ACL rules to a user account. – Alan Storm Sep 26 '16 at 22:00
  • Have you tried this plugin? wordpress.org/plugins/user-role-editor – Ahmed Fouad Sep 26 '16 at 22:00
  • @AhmedMahdi Does you recommendation of a plugin mean there's no way in a stock wordpress install to get this granular level of permission control? – Alan Storm Sep 27 '16 at 16:36
  • 1
    Only programmatically. You can add, remove, edit capabilities programmatically. WP provides no interface to edit the user caps without the help of a 3rd party plugin, same for user roles. – Ahmed Fouad Sep 27 '16 at 16:37
1

No there isn't anything built into the core WordPress, I would recommend this plugin: https://wordpress.org/plugins/user-roles-and-capabilities/screenshots/

Or you would use PHP to add a capability to a specific role (or user): https://codex.wordpress.org/Function_Reference/add_cap

0

No, there's no built-in feature for this (as of 4.6.1).

The best plugin I've found (and use) is called, Members.

Then instead of changing caps at the user-level, you'd use the plugin to:

  • Create a new role
  • Add the capabilities to that role
  • Assign user(s) to that role

Much easier to manage and maintain.

  • Does you recommendation of a plugin mean there's no way in a stock wordpress install to get this granular level of permission control? – Alan Storm Sep 27 '16 at 16:36
  • What @Ahmed said above. Programmatically or a plugin. – cowgill Sep 28 '16 at 1:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.