Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: API Documentation?


Boone Gorges
Keymaster

@boonebgorges

techguy is right – there isn’t really robust documentation at the moment. (Though you are welcome to participate in expanding the documentation at codex.buddypress.org as you figure things out!)

Just off the top of my head, you might look in the following places:
– for determining the admins of a group, look at bp-themes/bp-default/groups/single/group-header.php, where this is done in the context of group headers. The function to look for is bp_group_list_mods(), which is defined in buddypress/bp-groups/bp-groups-templatetags.php.
– Members of a group can be figured out with a group members loop. The codex page on this subject is quite good: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-group-members-loop-bp_group_has_members/. See also the same group templatetags file, where bp_group_has_members() is defined.
– A list of all groups can be had with bp_has_groups. See the codex https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/ and, again, bp-groups-templatetags.php (see a pattern emerging here?)

Skip to toolbar