Skip to:

API Documentation?

  • Is there better buddypress API documenation available than the lists of functions and tags found on

    I need to understand things like querying for the owner/admin of a group, members of a group, a list of all groups…

Viewing 3 replies - 1 through 3 (of 3 total)

  • techguy


    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 ”

    echo "

    (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.

    Boone Gorges


    techguy is right – there isn’t really robust documentation at the moment. (Though you are welcome to participate in expanding the documentation at 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: 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 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘API Documentation?’ is closed to new replies.
Skip to toolbar