[wp-hackers] How do I reset all roles and capabilities?

Viper007Bond wplists at viper007bond.com
Sun Nov 11 05:16:59 GMT 2007


By stupidly screwing around with the Role Manager plugins over the years
(renaming roles, creating custom roles for others, etc.), I've slowly broken
one of my sites and finally sealed the deal a few minutes ago by completely
locking myself out of my blog when I tried to rename my current role.

Is there any way (or plugin) to reset all roles and capabilities to as if I
had just installed WordPress? I can deal with everyone getting the
Administrator role or whatever as I can move them back to editors.

I'm thinking I do a fresh install of WordPress can copy over the row in the
options table that lists the roles and then copying over the usermeta row
for capabilities, but I'm a bit of a noob when it comes to roles and caps,
so suggestions welcome.

-- 
Viper007Bond | http://www.viper007bond.com/


More information about the wp-hackers mailing list