How to Set Permissions, Widgets, and More with Members
In this section of the guide to the Members plugin, we will show you how to:
- Enable Content Permissions
- Activate the Sidebar Widgets
- Customize Error Messages and,
- Force a User to Login prior to viewing the site
Step 1) Login to the WordPress Dashboard.
Step 2) From the left-hand sidebar of the Dashboard navigate to Settings -> Members.
Step 3) Complete the fields as outlined below:
|A.||Enable Role Manager||To enable the Role Manager, leave the checkmark in this checkbox.
If this checkbox does not contain a checkmark, the menu items Users -> Roles and Users -> Add New Role will be removed from the Users menu.
|B.||Enable Content Permissions||Content Permissions Checkbox
Content Permissions adds an additional meta box on the post editing screen. This meta box allows you to select which roles can view the content of the post/page. If no roles are selected, anyone can view the content.
If the Enable Content Permissions checkbox does not contain a checkmark, the meta box on the post/page will not be available and you will not be able to assign permissions to Roles.
Default Post Error Message
In the Default Post Error Message text area, you can enter a custom error message (using HTML or shortcodes), that any user without the appropriate permissions will see when they try to view the selected post/page.
|C.||Sidebar Widgets||Enable Login Form Widget
To enable the Login Widget, place a checkmark in this checkbox. Once the Settings are updated, this Widget will be available in Appearance -> Widgets.
When added to the sidebar, this Widget displays a login form where users can log in to your site.
Enable the Users Widget
To enable the User Widget, place a checkmark in this checkbox. Once the Settings are updated, this Widget will be available in Appearance -> Widgets.
When added to the sidebar, this Widget displays a list of your site’s users.
|D.||Private Site||Redirect all logged-out users…
To redirect all logged-out users to the login page before allowing them to view the site, place a checkmark in this checkbox.
Show error message for feed items
To display an error message for Feed Items, place a checkmark in this checkbox.
In the Feed Error Message text area, you can use HTML and/or shortcodes to create a custom error message to display instead of the feed item content.
For this example, the fields were completed as shown below:
Step 4) Click the Update Settings button to save any changes.
The next step of the guide will focus on How to Add New Role to WordPress with Members.