Posted By

inreflection7 on 08/02/11


wordpress roles

Versions (?)

Remove WP Role

 / Published in: PHP

Screw up and make a role you don't want? Or want to remove default roles? Its easy! Just run this PHP snippet - probably in something like the theme's functions.php file. That worked out get for me there. Just refreshing the admin page was all it took!

  1. $wp_roles = new WP_Roles();
  2. $wp_roles->remove_role("your_role");

Report this snippet  

You need to login to post a comment.