strangerstudios / pmpro-addon-packages

Charge for access to specific pages or other post types in WordPress. Requires the Paid Memberships Pro plugin.
https://www.paidmembershipspro.com/add-ons/pmpro-purchase-access-to-a-single-page/
25 stars 29 forks source link

Create a shortcode for users who haven't purchased the addon package #28

Closed kimcoleman closed 4 months ago

kimcoleman commented 7 years ago

A user requested a shortcode be created to allow the page to contain "sales" like content displayed only to users without access to the addon package. Their proposal was something of the format:

[not_purchased_addon id=”foo”]…not puchased content…TRAILER…[/not_purchased_addon ] [has_purchased_addon id=”foo”]…has puchased content…FULL VERSION…[/has_purchased_addon ]

While this isn't the format we must use, it demonstrates the concept.

kimcoleman commented 4 months ago

We are closing this issue as it is not recommended to use Addon Packages for most sites now that multiple memberships per user are part of core PMPro. It is better to create a level group that offers multiple selections and you can then use built-in PMPro content visibility methods to target and upsell to members.