Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,529
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
`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.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS