UserID Role shapes front end content (not current user)
-
I know that user_level has been depreciated.
So how now can one determine if a user . not the current user has certain capabilities?
(from my second post – the more general question I’m trying to answer is this…)
How can you determine if a unique userID has certain capabilities?
EX: highlight comments from all users with that capability
EX2: change author bio based on users with that capability.So for example:
Below each post is an author box.
I want to show a lot more information for my administrator / editors than for authorsglobal $authordata; $authorid = $authordata -> ID; if ($authorid <strong>can moderate_comments</strong>){ //show email }elseif ($authorid <strong>can edit_published_posts</strong>){ //show smiley face ? } // display for all is here.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘UserID Role shapes front end content (not current user)’ is closed to new replies.