Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created January 10, 2012 12:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramseyp/1588929 to your computer and use it in GitHub Desktop.
Save ramseyp/1588929 to your computer and use it in GitHub Desktop.
List & remove WordPress roles left behind by plugins
<?php
$wp_roles = new WP_Roles();
$names = $wp_roles->get_names();
print_r($names);
$wp_roles->remove_role('name_of_role_to_be_removed');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment