Listing Groups user is admin or moderator of
Hey, all. I’m trying to create a custom Group loop that would show only the Groups that user is an admin or moderator of. I have basic knowledge of some functions, but I can’t wrap my head around how to write this check.
I know of the `bp_group_is_admin()` and `bp_group_is_mod()` functions, but I’m not sure what that does exactly. Does it need the ID or slug to be passed through? How do I even begin to write that statement?
For anyone willing to help, `bp_group_slug()` will get the Group’s slug within a loop, and `BP_Groups_Group::group_exists( bp_get_group_slug() )` will fetch the ID. I’m not aware of other ways to do this, so if this method is not efficient, please let me know.
Thanks for any help.
You must be logged in to reply to this topic.