Last active
December 22, 2015 10:09
-
-
Save FernE97/6456688 to your computer and use it in GitHub Desktop.
WordPress: Display roles and remove by name
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('role_name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment