Created
January 10, 2012 12:53
-
-
Save ramseyp/1588929 to your computer and use it in GitHub Desktop.
List & remove WordPress roles left behind by plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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