Created
April 4, 2013 11:48
-
-
Save stefanbc/5309742 to your computer and use it in GitHub Desktop.
Remove any Wordpress user role
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 | |
require_once 'wp-load.php'; | |
$wp_roles = new WP_Roles(); | |
$wp_roles->remove_role("YOUR_ROLE"); // author, editor, contributor | |
$names = $wp_roles->get_names(); | |
print_r($names); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment