Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created January 16, 2019 20:16
Show Gist options
  • Save ideadude/c35d5e047cee14cf520f5904bfe72b4f to your computer and use it in GitHub Desktop.
Save ideadude/c35d5e047cee14cf520f5904bfe72b4f to your computer and use it in GitHub Desktop.
Examples of the PMPro [membership] shortcode.
[membership level="0"]
<!--this is shown to non-members and non-logged in visitors-->
[pmpro_advanced_levels levels="1,2,3" layout="3col"]
[/membership]
[membership level="1,2"]
[pmpro_advanced_levels levels="2,3" layout="2col"]
<!--this is shown to Level 1 and 2 Members-->
[/membership]
[membership level="3"]
[pmpro_advanced_levels levels="4"]
<!--this is shown to Level 3 Members-->
[/membership]
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Display Custom Membership Level Options Based on Current User’s Level" at Paid Memberships Pro here: https://www.paidmembershipspro.com/display-custom-membership-level-options-based-current-users-level/

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