WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

can i copy the role of administrator to another user and remove few capabilities not required ?. Basically, i want to have a user with restricted admin privileges.

share|improve this question

Give this plugin a try - http://wordpress.org/extend/plugins/user-role-editor/

share|improve this answer
This plugin is great. Create a new role in the plugin and enable all capabilities, which will create a 'copy' of the administrator role, and edit capabilities afterwards. That's how I've done it :) – Brian Apr 2 '13 at 9:04

To inspect what's attached to a current user, you can use my Current User Deamon Plugin. (There's also a version at the repo, but that's a little outdated.)

Then read a little into Roles & Capabilites in the Codex to get a feeling for what's happening.

Then use the add_cap() function to add single capabilites or play with the role objects (use the data, the plugin shows you) to move capabilities between roles).

Basically it's only a) retrieving the roles, b) grabbing the capabilites and c) add a new role (ex. restricted-admin) object that d) get's the reduced capabilities.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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