Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Getting the current logged in user ID?

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

Skip to toolbar