Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,848
- How-to & Troubleshooting
- 128,850
- Creating & Extending
- 25,736
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,389
- Miscellaneous
- 9,132
-
if you just need to check if a user is already a member of “a” group – then use one of the built in functions:
groups_get_user_groups( $bp->loggedin_user->id ) – returns list of ids
or
groups_total_groups_for_user( $bp->loggedin_user->id ) – returns a basic count which is wp_cached
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS