Allow Authors to View Their Posts Regardless of Membership Level

If you have multiple authors on your membership site, this recipe will override the post’s membership requirements and always let the author view their content (ignoring their current or past membership level).

Remember you can set new members to the “author” role at membership checkout via the methods in this previous article.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Lock or Unlock Posts Based on Age and Post Date

Here are few methods to override a post’s membership requirements to members (and non-members) based on specific timeframes your configure. While some of this could be done manually, these functions make the restrictions automatic.


Hide Old Posts to New Members

This existing recipe allows you to hide anything posted prior to a member’s join date. You may want to do this if your content is more serial in nature or if you want members to only receive access to content that comes out while they are subscribed.

View the Recipe

Allow Non-Members to View Restricted Posts Based on Timeframe

This recipe to allows a window of time that restricted posts are “unlocked”. This is good for allowing search engines to index your content as well as to entice new members to join by allowing a “taste” of what they will get when subscribing for the full history of content. For example, if you’re a podcaster, you could make your newest content public and your library of podcasts older than 30 days are restricted.

The posts must still be locked to the allowed membership levels, either via a category that is restricted on the level OR specifically via the post’s “Require Membership” settings.

The recipe is designed to open posts from the last 30 days. You can customize this for your own timeframe (7 days, 1 day, etc.).

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


Unlock Restricted Posts for Non-Members Based on Timeframe

This recipe to removes the membership requirements for posts older than 18 months (or your specified timeframe). This is also useful for sites with a large number of posts to allow the search engines to index lots of content, without giving away access to your newer, more timely articles.

The posts must still be locked to the allowed membership levels, either via a category that is restricted on the level OR specifically via the post’s “Require Membership” settings.

The recipe is designed to open posts that are older than 18 months. You can customize this for your own timeframe (3 months, 6 months, etc.).

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


Need to Customize Further?

The recipes above could be modified to unlock or lock posts only in certain levels, only to members of other allowed levels or only for posts in specific categories. PMPro Core or Plus Members can open a topic in our Members Forum for help with these recipes.

Lock Posts to Members-Only After Specific Timeframe

Allow public access to your members-only content for a set timeframe. The example below allows all members-only posts to be viewed for 24 hours, after which membership will be required to view.

This recipe is a variation of our previous technique to hide old posts from new members.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Sister Plugin for Addon Packages: Apply Parent Page’s Protection to All Child Pages

If you’re using Addon Packages to sell “à la carte” access to a single page, this sister plugin will extend the page protection to all child pages. If the feature proves popular, it may become a default part of the add on with filter to disable.

If a page’s parent has a price (defined as an “Addon Package”), the page will inherit its parent’s settings and show a default message about the restriction, the price, and a link to checkout.

pmpro_addon_package-restrict-message

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Sell Access to Post Categories “à la carte” Using Price-Adjusting Register Helper Fields

We blogged previously about synchronizing a post category with the purchase of an Addon Package.

This new recipe uses price-adjusting fields added via Register Helper to allow members to purchase individual post categories. And—unlike the previous method—this approach can update the recurring membership price.

pmpro_purchase_additional_access

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Sell Access to a Single Post Category Using the Addon Packages Plugin

The code recipe below synchronizes membership access to a single post category when the member purchases an Addon Package. Note that this only allows for a one-time payment, not a recurring subscription.

This method was covered in our recent webinar on Multiple Membership Levels Per User: The Workarounds. PMPro Plus members can view it on the webinar’s page here.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

How To Have a Paid Memberships Pro level with access to EVERYTHING.

Set a hidden “super level” with access to everything. This is a useful method for site administrators to be able to easily browse their entire membership site regardless of level.


A little background…

Something that confuses some people about Paid Memberships Pro is the fact that admins DON’T have access to everything on the site. Their access is based on their membership level, just like all others users.

If you want to have a “super level” with access to everything, you can use the code below. Set up the “Membership Level” that has access to everything, set it to “hidden”, then assign it to one or more administrator/site owner accounts directly via the Users > Edit User admin.


The Code Recipe

This code recipe requires a PMPro Plus Account or higher.

View Membership Options

Hide Old Posts From New Members

This recipe will show you how to add code to your functions.php that will hide old member content from new members. You may want to do this if your content is more serial in nature or if you want members to only receive access to content that comes out while they are subscribed.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »