Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get wp roles

function get_role_names() {

global $wp_roles;

if ( ! isset( $wp_roles ) )
    $wp_roles = new WP_Roles();

return $wp_roles->get_names();
}
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #wp #roles
ADD COMMENT
Topic
Name
5+5 =