WP Page Protected
WordPress plugin to protect pages
by Muhammad Sibtain · github.com/msibtain/wp-page-protected · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/msibtain/wp-page-protected/archive/refs/heads/main.zipA simple WordPress plugin that allows you to protect page content from non-logged-in users.
Features
- Adds a checkbox in the page editor sidebar to protect page content
- Protected content is only visible to logged-in users
- Non-logged-in users see a friendly message with a login link
- Clean and modern styling for the protection notice
- Lightweight and easy to use
Installation
- Download the plugin files
- Upload the plugin folder to the
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
Usage
- Edit any page in WordPress
- Look for the "Page Protection" meta box in the sidebar
- Check the "Protect this page content" checkbox
- Update/Publish the page
When a page is protected:
- Logged-in users will see the full page content
- Non-logged-in users will see a message asking them to log in
- The login link will redirect users back to the protected page after successful login
Requirements
- WordPress 4.7 or higher
- PHP 5.6 or higher
Support
For support, please create an issue in the plugin's repository.
License
This plugin is licensed under the GPL v2 or later.