WP Manifestindependent plugin directory
manifest / security / wp-page-protected

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.zip

A 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

  1. Download the plugin files
  2. Upload the plugin folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Usage

  1. Edit any page in WordPress
  2. Look for the "Page Protection" meta box in the sidebar
  3. Check the "Protect this page content" checkbox
  4. 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.