Site Access Restriction (SAR) - How The Plugin Works
How Content Restriction Works
This plugin 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.
The 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. Learn more about URL Filtering.
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 When Then Content is Restricted
The plugin defines two such conditions:
1) When the user is not logged-in, he/she will be redirected to a page you have set and defined in the plugin settings. Learn more: Access Denied Redirect.
2) When the user is logged-in but the content is restricted to the role, he/she will be redirected to another page defined in the plugin setting.