Go to the Edit Page screen for the page you want to restrict, and find the new “Permissions” section. Create and assign a new permission (e.g. “Gold subscriber”) and update your page. Now this page content will only be viewable by users who have this same permission assigned to them.
How do I allow a user to see a restricted page?
If a page is restricted, it’s content will only be viewable by users who have this same permission assigned to them. To assign a permission to a user, go to the Edit User page and you will see all possible permissions listed. Put a checkmark beside the Permissions you want to assign to this user. Save the changes, and the user will be allowed to see the page.
If a page has multiple permissions assigned, does a user need to have all those permissions assigned to her/him in order to see the page?
A user only needs to have one of the page permissions assigned to her/him in order to see that page. For example, if a page is assigned the permission “Gold subscriber” and another permission “Silver subscriber”, a user who is assigned the permission “Silver subscriber” will see the page.
What about pages with no permissions assigned to them?
They are visible to everyone.
Will this plugin restrict posts?
No. This plugin is only for pages.
Will this plugin restrict pages that use custom page templates?
It depends. If your page template uses the_content() to retrieve the main content, and does not loop through any posts, then yes this plugin will restrict the page. Otherwise, see the answer below.
Will this plugin restrict pages that show posts (archive pages)?
No. This plugin hides the main content of the page (the_content()). Any page template that loops through posts, be they default posts or custom post types, will continue to show those posts. A more advanced content restriction plugin (usually paid) would be required for your needs.
What WordPress user capabilities are required for the different functionalities of this plugin?
The manage_options capability is required to edit plugin settings.
The edit_users capability is required to assign permission to users.
Any user who has the rights to edit a page also has the rights to assign permissions to the page and create new permissions.
How can I contribute to the code?
The plugin is on GitHub, feel free to submit a pull request.
What languages does this plugin support, and how can I help translate it?
This plugin was released in English and French, and anyone can add additional translations from here.
Where do I report security bugs found in this plugin?
Please report security bugs found in the source code of the Simple Restrict plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.”