Display user role Name – not slug
Question
<?php global $current_user; echo array_shift($current_user->roles);>
Using this i can display user role slug but i want to display Name of the role. Any suggestion ? Thanks
0
php, user-roles
4 years
2020-03-10T12:51:02-05:00
2020-03-10T12:51:02-05:00 0 Answers
102 views
0
Leave an answer