User Roles – how to get the roles of the person whos profile it is.
-
Hi All,
I am developing a BuddyPress plugin that manipulates both BuddyPress and s2member.
I have built it so that it adds a special css to the page to hide information if they are free members on their profiles. For example:
s2member_level1
Can’t see their Premium Fields when they view their profile. Works.
s2member_level2
Can see premium profile fields
The trouble is that the current script checks the current user roles. I need to check the roles of the user the profile belongs to because if the user of the profile is not s2member_level2 then other users should not see premium fields too.
I hope someone gets what i am trying to say and can help
- The topic ‘User Roles – how to get the roles of the person whos profile it is.’ is closed to new replies.