Today I needed to create a BuddyPress conditional statement but none of the “normal” conditional tags suited my needs. Specifically, I needed to determine whether or not a user was a group moderator or admin role. The boolean that helps determine that can be found on the BuddyPress Function Reference page.

There is lots of neat stuff there.

Also on a somewhat related note, check out this list of BuddyPress global variables. You never know when you might need to display a BuddyPress user’s info within a conditional! 🙂