I've got some code like this:
$query_args = array(); $query_args['fields'] = array( 'ID', 'display_name' ); $query_args['role'] = 'subscriber'; $users = get_users( $query_args ); foreach ($users as $user) $users_array[$user->ID] = $user->display_name;
I want to get more roles and also include contributor
, author
and some custom roles I created with the Role Scoper plugin e.g. Manager
, etc. Any ideas how I can do this with get_users
?
Thanks