Site Access Restriction (SAR) - How the plugin works
How the Content Restriction Works
This plugin to allows users to create a membership and content restriction solution. The content restriction is based on user WordPress roles and if they are logged in or not
Content restriction can be set by the following options
1 - Specific URL - You can restrict access to specific posts. This can also includes URL parameters. To use specific URL filtering use the URL Filtering functionality in the plugin admin menu
2 - Specific Post / Page - You can restrict access to a post, page or any custom post type by editing the post and using the post metabox to restrict access.
3 - Specific Permalink - Some plugins create on the fly pages which are only represented by permalink. In such case you can use the admin bar edit option to define content restriction.
4 - To all posts by type - using the plugin setting you can restrict content across all post from a specific type.
5 - To part of the content - using a shortcode you can limit access to part of the content in a post or page only to specific roles user id or user action.
What Happens which Content is Restricted
Plugin defines two such conditions:
1) When user is not logged-in he will be redirected to a page you have set and defined in the plugin settings.
2) When user is logged-in but the content is restricted to his role he will be redirected to another page defined in the plugin setting.