BuddyPress uses loops to display the content of its components. In this article you will focus on how to “rearrange” the content displayed in four of its major components : Members, Groups, Blogs and finally Activity. You will achieve this thanks to the type or action argument of the init functions of each of these […]
Since version 1.8, it is possible to filter groups by Metadata. For instance you can add a meta_query parameter to the bp_has_groups() function. To make this possible, BuddyPress uses a built-in WordPress class : WP_Meta_Query (you will find a link to its WordPress codex page at the bottom of this article). This feature can help […]
Documentation for the BP_Group_Member_Query class, introduced in BuddyPress 1.8, will live here.
Note: This guide is for use with versions of BuddyPress older than 1.8. In BP 1.8, the group extension API was rewritten. Plugins written as described below should continue to work, but for new projects you are highly encouraged to use the 1.8+ methods described on the main Group Extension API Codex page. The group […]
The BP_Component class is the basis of getting your plugin initiated into BuddyPress. You extend this class to create custom components. In fact, the core components extend this class to create each core component (members, activity, groups etc.) This is the members component class which extends BP_Component:
BP_User_Query Class The BP_User_Query class was introduced in BuddyPress 1.7 as part of making BuddyPress more scalable. The effort continues. The next steps are being pondered. [ O last_activity field! Where will you end up? ] The class lives at the top of bp-core/bp-core-classes.php. Accepted Parameters type (optional) Defines the type of users to return. […]