=== Plugin Name === Description: Plugin hides page content from not logged-in users Version: 1.0.2 Author: Leonid N. Malyshev Author URI: http://mlplugin.azurewebsites.net Contributors: mln141 Tags: access, capability, cms, editor, parents, permission, restrictions, role, security, user, protection Requires at least: 4.1 Tested up to: 5.1.1 Stable tag: trunk Plugin hides page content from not logged-in users == Description == "Restricted Page" plugin was created to prevent unauthorized users from viewing particular pages. The plugin must be placed on the destination page. For logged-in users the plugin can show (in addition to the content of the page) predefined text and “Log out” button. For not logged in users plugin shows a predefined texts, login form and sign in button instead the page content. More info at http://mlplugin.azurewebsites.net/restricted-page-plugin/ == Installation == 1. Upload `RestrictedPage` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. In plugin settings (Admins menu “Settings”->”Restricted Page Options”) you can set plugin options: For not logged in users: • Text to publish before login form • Text to publish after login form • Show "Sign In" button? • Sign In Button text • Text to publish before Sign in form • Text to publish after Sign in form For logged in users: • Show "Disconnect" button? • Disconnect Button text All options allow to enter text with html tags (eg

,
…) 4. Place plugin shortcode on the pages you want to protect. You can insert plugin’s shortcode in any place of you page. You can place: • [RP_registered_only] • [RP_registered_only]Text to show to all users[/RP_registered_only] – For registered users “Text to show to all users” would be printed in the place of the shortcode before “Sign out” button (if shown). == Screenshots == 1. Screen shot of plugin options (menu “Settings”->”Restricted Page Options”) screenshot-1.jpg 2. Protected screen - presentation for logged-in users 3. Protected screen - presentation for not logged-in users