The plugin “ProAbono for WordPress” helps you to protect your content.
With the shortcode [PA-Access], you can add some content access restrictions.

Principle

  • Place your content between PA-Access tags:
    [PA-Access]Your Content[/PA-Access]
  • 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.

display_text_if_noregistered No Yes/No If Yes AND the user IS NOT logged, ‘text_if_noregistered’ Attribut will be displayed instead of your content.
text_if_noregistered No String
display_text_if_noaccess No Yes/No If Yes AND the user IS logged AND the user CAN NOT access to the content, ‘text_if_noaccess’ Attribut will be displayed intead of your content.
text_if_noaccess No String

Example

[PA-access
 referencefeature='premium-content'
 display_text_if_noaccess='yes'
 text_if_noaccess='This content is available only to paying subscribers.'
 display_text_if_noregistered='yes'
 text_if_noregistered='Please log in to see the content.']
CONTENT TO PROTECT
[/PA-access]

With this shortcode,

  • Visitors will see ‘Please log in to see the content.’ instead of your protected content.
  • Logged Users without any subscriptions with feature ‘premium-content’ will see ‘This content is available only to paying subscribers.’ instead of your protected content.