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 BuddyPress 1.8+. A guide for using the Group Extension API with earlier versions of BP can be found at http://codex.buddypress.org/developer/plugin-development/group-extension-api-prior-to-bp-1-8/. The group extension API makes it very easy to add custom creation steps, edit screens, navigation items and pages to a group. It essentially allows you to create […]
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 class lives at the top of bp-core/bp-core-classes.php. Accepted Parameters type (optional) Defines the type of users to return. Accepted arguments: active, newest, popular, online, alphabetical, random Default value: ‘newest’ per_page (optional) The number of users to display […]