Accessing BP_Groups_Member::get_group_ids in Theme Function
I have a smippet of code I am running in my theme’s function.
$group_ids = BP_Groups_Member::get_group_ids( $user_id );
When I output the array I always get:
[groups] => Array
[total] => 0
regardless of the groups for given user. I think I am missing something when trying to use this in functions, as the same code used in “theme\buddypress\members\index.php” will give me the desired results. Any ideas?
- You must be logged in to reply to this topic.