New BuddyPress Integration for Membership Communities using Paid Memberships Pro

We’ve just launched our BuddyPress Integration in the WordPress Plugin Repository. You can now restrict access to specific features of your BuddyPress community by membership level, allowing you to build a custom, private, and flexible members-only community.

View the Add On


BuddyPress Integration for Paid Memberships Pro WordPress PluginBuilding a Membership Community with your WordPress Site

BuddyPress adds community features to WordPress, including Member Profiles, Activity Streams, Direct Messaging, Notifications, and more. What many of you have already implemented via custom coding is now possible with one easy-to-use plugin.

With the help of this integration plugin, membership sites running Paid Memberships Pro can now take advantage of the following features:

  • Redirect users without access to a specific page which can be used to explain the community features and sell community membership.
  • Level-specific settings to restrict access to BuddyPress features including Group Creation, Single Group Viewing, Groups Page Viewing, Joining Groups, Public Messaging, Private Messaging, Send Friend Requests, Listing in the Directory.
  • Assign members to groups in BuddyPress.
  • Restricted access settings for users without a membership level.
  • Option to use the BuddyPress Registration process.
  • Assign “member types” by Membership Level.
  • Display a Member’s Level Name on their BuddyPress Profile.

Migrations Steps for Sites Using a Custom-Coded Solution

Prior to this Add On’s release, we did offer a custom-code solution to restrict BuddyPress access to Members. If you are using a custom solution loaded via a Plugin for PMPro Customizations, below are the steps to migrate to the new Add On-based solution.

  1. Locate the custom code in your Customizations Plugin.
  2. Uncomment or Remove the custom code. We recommend saving a copy of the code as a backup.
  3. Install and activate the BuddyPress Add On for Paid Memberships Pro.
  4. Configure the Add On settings per your unique restriction goals. Read the documentation page for help on setting up the Add On.

Screenshots

This slideshow requires JavaScript.


Explore the Add On Documentation
 

Exporting Your Members List: Default Data and Adding New Columns

This post covers how to export your Members List to CSV. We’ll cover the default columns included in the export, as well as a method to add additional user data to the file.


Access the Members List Export

The “Export to CSV” feature of Paid Memberships Pro is located on the Memberships > Members List admin page. Here you will see your full Members List, which can be filtered based on several features, including Membership Level, Status, or via search. The exported CSV file is based on the active filter in the current view. If you would like to add additional data to this admin page or allow for more detailed filtering, see:


Default Fields Included in the Members List Export

The basic CSV export will include these fields:

  • id
  • username
  • firstname
  • lastname
  • email
  • billing firstname
  • billing lastname
  • address1

  • address2
  • city
  • state
  • zipcode
  • country
  • phone
  • membership
  • initial payment

  • fee
  • term
  • discount_code_id
  • discount_code
  • joined
  • expires


Adding Additional Data to the Export

There are a few methods to add data to your CSV export.

The easiest method applies to fields that are created via the Register Helper Add On. The code that adds your additional fields will simply need to be updated with attribute memberslistcsv => true. See detailed information on adding fields via Register Helper here.

If you need to add fields that were not created via Register Helper, you will need a custom function that uses the hook: pmpro_members_list_csv_extra_columns . For example, the code recipe below demonstrates how to add fields from the wp_users or wp_usermeta tables as well as fields added via BuddyPress. There may be other custom tables you need to pull in data from, in which case you’d need to access the user information in another way (dependent on the plugin you are trying to interact with).


The Code Recipe

This code recipe requires a PMPro Plus Account or higher.

View Membership Options

Apply a BuddyPress “Member Type” on Membership Checkout or Level Change

The BuddyPress Add On for Paid Memberships Pro allows you to assign BuddyPress “Member Types” by Membership Level. The code recipe below demonstrates how to create a “member type” in BuddyPress.


The Code Recipe

You can add additional member types in the my_pmpro_bbg_register_member_types () function, then repeat lines 29-33 to define additional level<->member type relationships.

Copy and paste this code recipe into a helper PMPro Customizations plugin.


Assigning a Member Type by Membership Level

Follow the steps below to assign a Member Type (you must first install and configure the BuddyPress Add On for Paid Memberships Pro).

  1. Navigate to Memberships > Membership Levels.
  2. Select a level to edit or create a new level.
  3. Under “BuddyPress Member Types”, select the member types you would like to assign for members of this level.
    Assign BuddyPress Member Types by Membership Level with Paid Memberships Pro WordPress Plugin
  4. Save Settings.

Screenshot: BuddyPress User Profile with “Member Type” Selection

buddypress-member-type