Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,846
- How-to & Troubleshooting
- 129,867
- Creating & Extending
- 25,895
- Requests & Feedback
- 9,546
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
`function new_group_is_admin_loop( $user_id = 0 ) {
global $bp, $groups_template;
if ( empty( $user_id ) )
$user_id = $bp->loggedin_user->id;
$groups_template = BP_Groups_Member::get_is_admin_of( $user_id );
}`
…or something similar? Untested so your mileage may vary.
Chances are this won’t work, thinking back on it now. But, give it a shot. At the very least that function will return back the groups that the user is the admin of; you may need to do your own custom loop functions afterwards.