• Hey guys, I am in the process of building a membership site that will use BuddyPress and I would like to use PMPro as well. I do however need the ability to control visibility of any custom field created with BuddyPress based on the membership level of the logged in user. A limited number of fields will be shown during registration, the remaining fields will be made available to the user when editing their profile.

    For example I will have three levels (Free, Pro, Business), and a-z fields.

    I would like to set up front end visibility as such:

    Free Members should only see fields A-F
    Pro Members should see fields A-M
    Business Members should see fields A-Z

    Can I accomplish this with PMPro, if so could you please advise the process or point me to where I can find the information. Thanks

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    Yes, you can easily add fields with our Register Helper addon here: https://www.paidmembershipspro.com/add-ons/plugins-on-github/pmpro-register-helper-add-checkout-and-profile-fields/

    When registering the fields, use the levels option to control which levels display which fields.

    You might also want to checkout our PMPro BuddyPress Customizations addon for restricting certain BuddyPress content – https://gist.github.com/strangerstudios/3111478#file-gistfile1-txt

    Hope that helps!

    Thanks,
    Jess

    Thread Starter latinflava31

    (@latinflava31)

    Thanks for the info Jess, after a brief review I am not quite certain this is what I am after.

    The first item only seems to allow to add fields to registration and profile, which buddypress already does. What I am after is being able to restrict the visibility of those fields based on role type, membership type or something of the likes.

    As for the second link, I need to take a closer look to see how flexible and or feasible this may be.

    Thanks again.

    Sorry for the confusion – actually you would have to look to see if there’s a hook when BuddyPress adds those fields, or some other way to conditionally show the BuddyPress fields, and check for membership with the pmpro_hasMembershipLevel() function. I’m not too familiar with BuddyPress so I don’t know if there is a hook, but I hope that makes sense.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Control Visibilito of Custom BuddyPress fields with pmp’ is closed to new replies.