Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've been having a difficult time adding custom post type capabilities to roles (Adding capabilities to default roles) and I suspect that my muddling around may have caused some problems. I also have installed and de-installed various plugins some of which added capabilities. As a result My WP Role object is a bit of a mess. Does anyone know of a way to reset capabilities or do I need a fresh install?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I use User Role Editor. You can delete added roles, and reset roles from the plugin page.

To reset the administator role, you can, as of WP 3.4+, add

define('URE_SHOW_ADMIN_ROLE', 1);

to your wp-config.php file. After having done so, you need to go to Users > User Role Editor and click "Reset".

share|improve this answer
    
Can I use it and then de-install it? –  mantis Jul 3 '13 at 21:20
    
Yes, since you are just resetting the roles back to the original state, there should be no problem with deleting the plugin. –  livearoha Jul 3 '13 at 21:31
    
Ok, I'll give it a go then. –  mantis Jul 3 '13 at 21:34
    
As with any plugin, I would recommend copying your database beforehand, just in case it doesn't do what you want you always go back. –  livearoha Jul 3 '13 at 21:39
    
Unfortunately, It couldn't reset administrator which is the one I wanted to reset. –  mantis Jul 3 '13 at 21:42
show 7 more comments

Your Answer

 
discard

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.