Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created January 31, 2018 01:13
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/fb0f271c291368f8b028b4c941b33b8a to your computer and use it in GitHub Desktop.
Save kimcoleman/fb0f271c291368f8b028b4c941b33b8a to your computer and use it in GitHub Desktop.
Another example block using the [haspaid] shortcode for Paid Memberships Pro
[membership level="1"]
[haspaid level="2" paid="1"]
<div class="pmpro_message pmpro_default">
<h2>Baby come back—and save $50</h2>
I see that you used to be a Platinum level member. I wanted to extend a one-time offer for you to upgrade to Platinum today and save $50.
[memberlite_btn style="action" href="/membership-checkout/?level=2&amp;discount_code=50OFF" text="Upgrade to Platinum Membership" icon="heart"]
</div>
[/haspaid]
[/membership]
@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