Nope. Although, it’s often good to consult the WordPress codex as well since all of those functions can be used also.
I’ve also learned to love this piece of code to output what’s being stored in various vars (just replace $bp with the var you want to see):
echo ”
";
var_dump($bp);
echo "
“;
die;
(the echo should be the pre html code since this won’t display code right)
Otherwise, I look at plugins that do similar things to what I want to do to find new code or ask in the forums and sometimes people will answer with the code.
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?)
how i can start using buddypress . i mean to say how i can develop my own site using buddypress . I am new to buddypress can somebody will help me out where to download and what to download and which document i need to follow. Help will be great