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


Comments (8)

Author’s gravatar

and probably more importantly, how do I do this for more than one member type — say I want level 1 and level 2 to each have different member types?

Author’s gravatar

You can set a different member type per level by tweaking this code. Note that the if/else statement setup sets a certain member type for level 1 and no member type for no-level/cancelling. If you add an “elseif” in there checking for level 2 you can have it set a different member type.

If you can’t code PHP or have access to a developer to help you, you can post to the member forums with info on all of your levels and member types and how they match up, and we’ll write up the code for you. Mention that I said that here in this comment.

Author’s gravatar

hello if i want to change a membership level the price would be eactly the same its just level 2 would have more acess if i want to keep the billing date eactly the same do i change the level on billing date or what is an easier option?

Author’s gravatar

I can’t figure out what you’re really asking here. Is it related to BuddyPress? Can you open a thread in the support forums?


Leave a Reply

Your email address will not be published. Required fields are marked *