1. Home
  2. Shortcode Reference
  3. Restrict Content

Restrict Content

Restrict specific content within a post or page.



The shortcode can be used without any parameters, as shown above. For additional configuration, add any of the following optional parameters to the shortcode:

  • subscription_plans – One or more subscription plan IDs separated by commas. If this field is not set, the content will be displayed to all logged-in users.
  • display_to – Enter “not_logged_in” to display the content to logged-out users instead.
  • message – Customize the message to display to users who don’t have access to the content.

Example Usage

[wpay-restrict message="You must be logged in to view this content." subscription_plans="31"]
Put your restricted content here.
Was this article helpful to you? Yes No

How can we help?