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

WP Page Protected

WordPress plugin to protect pages

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/msibtain/wp-page-protected/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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.