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 »

Show a login/register link for non-members when using the [membership] shortcode.

Here’s a useful code recipe for sites using the [membership] shortcode to show unique content based on the membership level of the user.

The code recipe will show “Log In” and “Register” links at the bottom of any post that uses the [membership] shortcode.

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 »

Customizing the Message for Non-Members on Membership Protected Content

This post covers some options for customizing the message a non-member (either logged in or logged out) sees when trying to access a piece of members-only content.


The Default Message and Where to Modify It

In your WordPress admin, navigate to Memberships > Advanced Settings. Here you will see three separate message customization options:

  • Message for Logged-in Non-members
    This message replaces the post content for non-members. Available variables: !!levels!! and !!referrer!!
  • Message for Logged-out Users
    This message replaces the post content for logged-out visitors. Available variables: !!levels!! and !!referrer!!
  • Message for RSS Feed
    This message replaces the post content in RSS feeds. Available variable: !!levels!!

pmpro_content_message-memberliteCustomize the messages and click the “Save Settings” button. You can use HTML if you want to wrap the message in stylized boxes (per your theme or custom CSS) or use headings and other font formatting options. The message is wrapped by default in the pmpro_content_message class.

These messages will show on the single page/post as well as in the index/search/archive view if you have the setting Filter searches and archives? set to Yes.

More about excerpts can be found in the blog post here.


Using Advanced Filters

On our site, we override this setting with a custom function. Here are two code recipes that you will need to customize to show a unique message based on the logged-in user’s membership level or for a not logged in visitor.

For Logged In Non-Members

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


For Not Logged In Visitors

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


Copy and paste this code recipe into a helper PMPro Customizations plugin. Then modify the level IDs and messages for your needs.