Retrieve user roles but exclude default roles
I am currently using the wp_roles() function to retrieve all user roles available like this:
?php
foreach (wp_roles()-get_names() as $role) {
echo translate_user_role( $role );
}
?
How would I retrieve an array/list of all custom roles that I've created without the default roles (Administrator, Editor, Subscriber, etc) included?
Topic user-roles Wordpress
Category Web