Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created January 31, 2018 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/f8e4ad743d82cb394937df6f42e6332b to your computer and use it in GitHub Desktop.
Save kimcoleman/f8e4ad743d82cb394937df6f42e6332b to your computer and use it in GitHub Desktop.
An example block using the [haspaid] shortcode for Paid Memberships Pro
[haspaid level="1" paid="0"]
<div class="pmpro_message pmpro_default">
<h2>Unlock Additional Members-only Content!</h2>
You are currently on a free trial membership. To unlock additional content, please upgrade now to a full membership.
[pmpro_checkout_button level="1" text="Upgrade to Gold Membership"]
</div>
[/haspaid]
@laurenhagan0306
Copy link

This recipe is included in the blog post on "New [haspaid] Shortcode: Show Content to Paying (or not paying) Members Only" at Paid Memberships Pro here: https://www.paidmembershipspro.com/new-haspaid-shortcode-show-content-paying-not-paying-members/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment