Change WordPress user roles and capabilities › Forums › How to or FAQ › How to display renamed roles in get_users() loop › Reply To: How to display renamed roles in get_users() loop
02/11/2015 at 15:32
#1780
Vladimir
Keymaster
Hi,
replace
$thisUserPermissions = $role;
with
$thisUserPermissions = $name;
As user may have multiple roles assigned, it will be more universal to concatenate role names comma separated.