wordpress

TR Register Only – Private Site & Role-Based Access Control

TR Register Only makes your entire WordPress site private. Once enabled, only logged-in users can access any page, post, or custom post type. Everyone else is redirected to the login page (or a custom URL of your choice).

Click to view full size
v 2.0.0

Overview

TR Register Only makes your entire WordPress site private. Once enabled, only logged-in users can access any page, post, or custom post type. Everyone else is redirected to the login page (or a custom URL of your choice).

Private/members-only communities
Staging and development sites
Corporate intranets
Schools and educational platforms
Subscription-based content sites

  • One-click enable/disable toggle
  • 🔒 Role-based access control
  • ↩️ Redirect to wp login page or any url
  • 💬 Custom message shown on the login page
  • 📋 Whitelist specific pages for public
  • 🏠 Optionally whitelist the home/front page
  • 📡 Optionally restrict REST API to authenticated users
  • 🧹 Clean uninstall — removes all data when deleted

Reviews

There are no reviews yet.

Be the first to review “TR Register Only – Private Site & Role-Based Access Control”

Your email address will not be published. Required fields are marked *

= Changelog = Latest

2.0.0

  • Complete rewrite for modern WordPress 6.x compatibility
    * Added role-based access control (minimum role setting)
    * Added custom URL redirect option
    * Added page whitelist feature
    * Added home page whitelist option
    * Added REST API protection option
    * Added custom login message support
    * Added clean uninstall (removes options on delete)
    * PHP 8.x compatible
    * Singleton pattern with proper OOP architecture
    * Full input sanitization and escaping

1.0

  • Initial release

= Upgrade Notice =

2.0.0

Major update with new features including role-based access, page whitelisting, REST API protection, and custom redirect URLs. Settings are stored fresh — please review your configuration after upgrading.