/

CM Pay Per Post (CMPPP) - How To - Restrict Sections Of The Content (Shortcode)


Restricting Content 

Back to User Guide

What is This Feature

Version 2.1.3 introduced a shortcode to restrict sections of the content.

If the user is not a subscriber, he/she will see a "Restricted Section" box instead of the locked content. A paybox will be triggered at the end of the content.


How to Use the Shortcode

Locking the content is easy. Simply surround it with the shortcode, as shown:

[cmppp_restricted] any content [/cmppp_restricted]

Example

You can use the shortcode many times in the same content. The following is an example of the Back-End: 

And the resulting Front-End:


Customizing the Text

You can customize the text of the restricted section box:

To do so, navigate to the  Admin Dashboard → CM Pay Per Posts Pro → Settings.

Then click on the  Labels tab.

There are two relevant labels:

  • restricted_shortcode_heading - default is "Restricted Section"
  • restricted_shortcode_content - default is "Only subscribed user would be able to view this content."



More information about the Pay Per Post WordPress  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