Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add custom filters to loops and enjoy them within your plugin

Published on December 3rd, 2013 by imath

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 […]

Enqueueing Scripts or Styles only when your plugin needs it

Published on November 17th, 2013 by imath

Using Javascipt or CSS in BuddyPress plugins are interesting ways to take care of the user experience. I think, as a plugin author, you need to have two concerns : you might not be the only one to use Javascript, other plugins can be activated in the community website, your CSS rules might not get […]

Group Meta Queries: Usage Example

Published on November 4th, 2013 by imath

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 […]

BP_Group_Member_Query

Published on July 18th, 2013 by Rami Yushuvaev

Documentation for the BP_Group_Member_Query class, introduced in BuddyPress 1.8, will live here.

Group Extension API

Published on July 16th, 2013 by Boone Gorges

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 […]

Group Extension API (legacy)

Published on July 16th, 2013 by Boone Gorges

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 […]

BP_Component

Published on December 2nd, 2012 by @modemlooper

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

Published on September 7th, 2012 by shanebp

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 […]