The plugin “ProAbono for WordPress” helps you to protect your content.With the shortcode [ProAbono-content-restriction], you can add some content access restrictions.
Principle
- Place your content between ProAbono-content-restriction tags:
[ProAbono-content-restriction]Your Content[/ProAbono-content-restriction]
- Set the attributes of this Shortcode to define the restrictions and replacement texts.
Here is the list of attributes :
Name | Required | Type | Description |
referencefeature | Yes | String | If a User has a subscription this feature included, he will be granted to see your protected content.
Manage Offers, Subscriptions, Features directly from the backoffice of ProAbono. |
Example
[ProAbono-content-restriction referencefeature='premium-content'] CONTENT TO PROTECT [/ProAbono-content-restriction]
With this shortcode, by default,
- Visitors will see ‘This content is protected. Please log in or register. Ce contenu est protégé. Merci de vous connecter ou de créer un compte.“. Here is an example :
- Logged Users without any subscriptions with feature ‘premium-content’ will see the following content instead of your protected content: ‘This content is only available for paying subscribers. Subscribe or upgrade. Ce contenu est accessible uniquement pour les clients payants. S’abonner ou changer d’offre‘ . Here is an example :
These contents can be updated from the setting of the ProAbono’s plugin in your WordPress website.