Support » Plugin: Paid Memberships Pro » [Plugin: Paid Memberships Pro] Custom Post Types & Taxonomies

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Coleman


    Some info that may help you.

    To enable the “require membership” box for a CPT (which will let you lock down individual CPTs):

    To lock down a custom taxonomy, you can write some custom code to hook into the pmpro_has_membership_access_filter or pmpro_has_membership_access_filter_{posttype} hook.

    Here is an example doing something else, but might help:

    If you sign up for support at, I can write up some more specific code for you.

    Hope this helps.

    Yes Jon!
    I just found our the solution!
    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!

    Hi Jon,

    You have found a solution, but I would advise against modifying the plugin files as an update to the plugin will erase any changes you may have made. Please refer to the post Jason referenced above for adding a meta box to your custom post type. You’ll want to keep your modifications to PMPro in your current theme, or a plugin to prevent over-writes.

    I’m going to resolve this thread. If you have any other questions, please feel free to open a new one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Paid Memberships Pro] Custom Post Types & Taxonomies’ is closed to new replies.