Paid Memberships Pro
[resolved] Custom Profile Fields / Custom Post Types control (6 posts)

  1. Clifford Paulick
    Posted 3 years ago #

    Profile Fields:
    Does Paid Memberships Pro have its own Custom Profile Fields, or does it use WordPress profile fields? Can custom profile fields be added via wp-admin or only via code?

    Custom Post Types:
    Can it control access to custom post types, type by type, like 'gold' members can access the 'bestever' post type?

    Thank you.


  2. Clifford Paulick
    Posted 3 years ago #

    I found this relating to CPT: http://wordpress.org/support/topic/plugin-paid-memberships-pro-custom-post-types-taxonomies?replies=2#post-3260119
    And I read somewhere else that PMP hooks into WP's user fields so I'll resolve this ticket myself and just say that I vote for a GUI version of CPT control and user profile field customizations. Thanks for this free plugin.

  3. Clifford Paulick
    Posted 3 years ago #


  4. rwilki
    Posted 3 years ago #

    I'm looking for this too. I have a calendar on my site and I'm not able to make the events protected by Paid-Memberships-Pro. Was hoping I could accomplish this with custom field of some kind.


  5. rwilki
    Posted 3 years ago #

    I figured out a pretty simple way to hide the calendar page from people who are not "members".

    On my site, I have it working so that I can hide the widget from visitors who are less than level 2 but I couldn't figure out who to hide the full calendar page from their view. So I created a custom template for this page. I removed all the extra unnecessary php so I could figure out where the custom php needs to go easier. After some trial and errors, I added this code to my template and it works great. Hope it helps.

    For me, it worked great like this

    <?php if(pmpro_hasMembershipLevel('0,1')) { ?>
    <div class="post-content"><strong><p>This Calendar is restricted.</strong></p>
    <p>More Text Goes Here.</div>
    <?php } ?>
    <?php if(pmpro_hasMembershipLevel('2')) { ?>

    The first part shows a restriction message to any visitor with an access level of "0" or "1". The second part shows the full calendar if the visitor is a logged in member of level "2"

    Hope it helps.

  6. wtoalabi
    Posted 2 years ago #

    I think I found the fix!
    All you need to do is just locate:
    Search inside for
    "add_meta_box('pmpro_page_meta', _x('Require Membership', 'metabox heading', 'pmpro'), 'pmpro_page_meta', 'page', 'side');
    Now just change the 'page' to whatever is the code-name of your custom-type.
    For example, try to create a new custom type and if your address looks like this:

    Then, "myportfolios" is your custom-type.
    Just replace the word "page" in the metabox above to myportfolios
    Thats all!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic