WP Manifestindependent plugin directory
manifest / users / wp-content-access-manager

WP Content Access Manager

A custom WordPress plugin with admin settings, secure REST APIs, and frontend content restriction.

★ 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/yashmuledev/wp-content-access-manager/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 custom WordPress plugin that allows administrators to manage frontend content access using an admin settings page and secure REST API endpoints.


🚀 Features

  • Admin settings page to configure access message
  • Secure form handling using WordPress nonces
  • Custom REST API endpoints (GET & POST)
  • Permission-based access control
  • Frontend content restriction for unauthenticated users
  • REST API tested using Postman

🧱 Plugin Structure

wp-content-access-manager/ ├── wp-content-access-manager.php ├── includes/ │ ├── admin-menu.php │ ├── rest-api.php │ └── content-filter.php


🔌 REST API Endpoints

GET /wp-json/wpcam/v1/settings

POST /wp-json/wpcam/v1/settings

Example request body:

{ "access_message": "Please login to view this content" }

Authentication required: WordPress Application Passwords


🧪 Testing

  • REST APIs tested using Postman
  • Unauthorized requests correctly return 401
  • Permission checks enforced using permission_callback
  • Admin-only access for sensitive operations

🛠 Tech Stack

  • WordPress Plugin API
  • WordPress REST API
  • PHP
  • Postman

👨‍💻 Author

Yash Mule
GitHub: https://github.com/YashMuleDev