Trying to display Role. But its always administrator
-
<?php $user_info = get_userdata(1); echo 'Your current community is:<b> '; echo '<br><br><span style="color:#63A132;">' . implode(', ', $user_info->roles) . "\n"; ?>
It should be displaying something other than Administrator. I’m logged in as another role.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trying to display Role. But its always administrator’ is closed to new replies.