How to see if a user is in a group
-
At the bottom of my WP Edit User screen in the dashboard is a section called “Group Membership”
screenie: http://lonecrow.com/groups.gifAre these BP groups or WP groups? When I look at the HTML source I don’t see clues as to which it is.
What I am trying to do is create another group called “Associate Member”. Then, filter them out of the bp member directory, and deny them access to the bp forums.
I am a long time developer and DBA but have zero experience with WP let alone BP.
My initial idea was that in the member_loop I would just check each user in the loop to check which group they are a member of, and only output those that are full members. Then I thought this may mess up the pagination because pagination is probably done in the db layer.
I really don’t want to reverse engineer the entire WP and BP framework to make this one little change.
So I would appreciate it greatly if someone could give me a head start by pointing me in the direction of the appropriate layer to make this change.
- The topic ‘How to see if a user is in a group’ is closed to new replies.