Skip to:
Content
Pages
Categories
Search
Top
Bottom
Codex Home

BuddyPress Cover Images

Published on October 9th, 2015 by Mathieu Viet

Note: This guide is for use with BuddyPress 2.4+.  The Cover Images feature uses the BP Theme Compat API to maximize its compatibility with most WordPress themes. It allows members of your community, and groups administrators to upload an image to prettify their headers. Themes using the BP Theme Compat API   This is the […]

Member Types

Published on December 8th, 2014 by Boone Gorges

BuddyPress 2.2 introduced the concept of member types. This functionality is outlined below. Registering member types BuddyPress itself does not register any member types. Plugins and themes can register member types using the bp_register_member_type() or the bp_register_member_types() function: The first parameter of bp_register_member_type() is a string identifier for the member type, used internally by BP as […]

bp_activity_set_action()

Published on December 1st, 2014 by Mathieu Viet

bp_activity_set_action() is used to set activity actions. bp_activity_set_action() should only be invoked through the ‘bp_register_activity_actions’ action. Usage Parameters $component_id The unique string ID of the component the activity action is attached to. Possible values can be one of the BuddyPress optional components or an optional component the plugin is creating : ‘activity’ ‘blogs’ ‘friends’ ‘groups’ […]

Add Meta Box to Admin Extended User Profile

Published on April 16th, 2014 by modemlooper

BuddyPress 2.0 allows admins to edit user profile fields from the Dashboard>>Users>>Edit User page. This extended profile page offers the ability to add your own settings for a user. This page gives a simple example of how to add the meta boxes to the extended profile page. What you add to the meta box can […]

Playing with the user’s ID in different contexts

Published on November 23rd, 2013 by Mathieu Viet

BuddyPress Core is first taking care of the members. As a result, when you write a BuddyPress plugin, there is a very good chance that you’ve got to play with the finest element identifying the users : their ID. There are two scenarios: the logged in user and the user whose profile is displayed. Thankfully, […]

bp_activity_add()

Published on September 29th, 2013 by Boone Gorges

bp_activity_add() is used to insert new activity items into the database. Usage Parameters $args An array that describes the activity item that you’re creating. Possible values: ‘id’ (optional) Pass a numerical id to update an existing activity item ‘action’ An HTML string summarizing the activity item, which is used by the template when displaying the […]

bp_core_get_userlink()

Published on June 30th, 2013 by darrenmeehan

Description Returns a HTML formatted link for a user with the user’s full name as the link text. Top Usage Top Parameters $user_id (integer) User ID to check. $no_anchor (bool) Disable URL and HTML and just return full name. Default false. $just_link (bool) Disable full name and HTML and just return the URL text. Default […]

bp_load_theme_functions()

Published on April 8th, 2013 by modemlooper

If you need to stop BuddyPress from loading the buddypress-functions.php file use the remove action below. This is useful if you are supplying functions with your custom BuddyPress theme that may interfere with the core functions. Source File bp_load_theme_functions() is located in bp-core/bp-core-template-loader.php

bp_profile_field_data()

Published on March 18th, 2013 by Brendino

Description Takes a field name and outputs its corresponding field value. Can be specified by user ID. Usage Parameters field (string) Name of profile field to retrieve. The default is false user_id (integer) Display field corresponding to a specific user. If no parameter is used, it defaults to bp_displayed_user_id() Example To get the current user’s […]

Posting Activity from Plugins

Published on March 1st, 2013 by Mathieu Viet

bp_activity_add() This function was introduced in BuddyPress 1.1, it’s located in /bp-activity/bp-activity-functions.php at line 997 (version 1.7-beta1). It needs an array of arguments and returns the activity id once created by the method BP_Activity_Activity::save() BuddyPress uses some aliases to call this function from its different components as detailed in this chart : Functions Components Types […]

Skip to toolbar