Did you know that even website administrators will need an active membership level in order to see member-only content? Use this code recipe to override the behavior of the pmpro_has_membership_access_filter to always allow admin access to restricted content.
This recipe is designed for a membership site that wants to quickly give members of a specific level access to all restricted content, without the need to individually update each post or run a Toolkit script. You can use this recipe when you add a new membership level to your site or to offer a…
Temporarily restrict content for a member that is ‘paused’ or otherwise blocked from using the features of your membership site. This recipe adds a single checkbox for admins to “Deny Access to Member Content” for a specific user. You can use this recipe in combination with suspending or pausing the member’s subscription at the gateway…
Build a membership site that rewards members for signing up earlier rather than later. This can be done by preventing new members from seeing published content that was published before a members join date….
When creating and editing your site’s Membership Levels, you can choose to add membership requirements at the post category level. By doing this, any post in that category will automatically have the access restrictions in place. This recipe demonstrates how to remove that access restriction on specific post IDs, regardless of the category’s settings….
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….
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.
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….
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…
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….