Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,871
- How-to & Troubleshooting
- 128,939
- Creating & Extending
- 25,749
- Requests & Feedback
- 9,449
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,392
- Miscellaneous
- 9,141
-
Since you saved me the time looking for this, I’ll throw in the other 2 I already knew:
groups_is_user_mod( $bp->loggedin_user->id, $bp->groups->current_group->id)
groups_is_user_admin( $bp->loggedin_user->id, $bp->groups->current_group->id)
Plus, that’s the code to get the logged in userid and current groupid.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS