WordPress Pay Per Post Plugin (CMPPP) - How To - Hide Specific Content After Paying for Post (Shortcode)
Hiding Specific Content After Paying for Post
TIP: What Are Shortcodes
Shortcodes add dynamic content to your site via a small piece of code.
Learn more: Shortcodes - How To Use | Finding ID of Post/Page/Other Content
What is This Feature
The WordPress Pay Per Post plugin version 2.6.8 introduced a shortcode to hide sections of the content after paying for a post.
It can be useful when you need to show some information before the purchase and which is not needed after the post is purchased.
How to Use the Shortcode
Using the shortcode is easy. Simply surround it with the shortcode, as shown:
[cmppp_restricted] any content [/cmppp_restricted]
Important: this shortcode should be used on the same page where the content is restricted with the shortcode [cmppp_restricted]
. Learn more about this shortcode: WordPress Pay Per Post Plugin (CMPPP) - How To - Restrict Sections Of The Content (Shortcode)
Example
Let's add a video with the instruction on how to unlock the content before the restricted content:
Result: the user can see the video instruction while the main content is locked, and after the payment, the video is hidden and the user can see the unlocked content.
More information about the WordPress Pay Per Post Plugin Other WordPress products can be found at CreativeMinds WordPress Store |
|
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |