Langkau ke kandungan
WordPress.org

Bahasa Melayu

  • Tema
  • Pemalam
  • Tentang
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

TR Register Only

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

TR Register Only

Oleh techieresource
Download
  • Details
  • Reviews
  • Pemasangan
  • Pembangunan
Support

Description

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

Key Features:

  • βœ… One-click enable/disable toggle
  • πŸ”’ Role-based access control β€” set minimum required user role
  • ↩️ Redirect to WordPress login page or any custom URL
  • πŸ’¬ Custom message shown on the login page
  • πŸ“‹ Whitelist specific pages for public access (e.g. pricing, landing pages)
  • 🏠 Optionally whitelist the home/front page
  • πŸ“‘ Optionally restrict REST API to authenticated users
  • 🧹 Clean uninstall β€” removes all data when deleted

Perfect for:

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

Installation

  1. Upload the tr-register-only folder to /wp-content/plugins/
  2. Activate the plugin from Plugins > Installed Plugins
  3. Go to Settings > TR Register Only to configure

FAQ

Will this lock me out of the admin?

No. The WordPress login page (wp-login.php) is always whitelisted automatically, so you can always log in.

Can I allow some pages to be publicly accessible?

Yes. In Settings, enter the page IDs you want to keep public under “Whitelisted Page IDs”. Separate multiple IDs with commas.

Does this protect the REST API too?

Optionally. Enable “Protect REST API” in settings to require authentication on all REST endpoints. Note this may break plugins that rely on unauthenticated API calls.

How do I find a page’s ID?

Go to Pages > All Pages, hover over a page, and the ID appears in the URL at the bottom of the browser (e.g. post=42).

Reviews

There are no reviews for this plugin.

Contributors & Developers

“TR Register Only” adalah perisian sumber terbuka. Orang-orang berikut telah menyumbang kepada pemalam ini.

Penyumbang
  • techieresource

Translate “TR Register Only” into your language.

Berminat dalam pembangunan?

Layari kod, periksa repositori SVN, atau langgani log pembangunan dengan RSS.

Changelog

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

Meta

  • Version 2.0.0
  • Last updated 6 bulan lalu
  • Active installations 30+
  • WordPress version 5.6 or higher
  • Tested up to 6.7.7
  • PHP version 7.4 or higher
  • Language
    English (US)
  • Tags
    loginmembers-onlyprivateregistrationrestrict
  • Paparan Lanjutan

Ratings

5 out of 5 stars.
  • 3 5-star reviews 5 stars 3
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Your review

See all reviews

Penyumbang

  • techieresource

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv β†—
  • Get Involved
  • Events
  • Donate β†—
  • Swag β†—
  • WordPress.com β†—
  • Matt β†—
  • bbPress β†—
  • BuddyPress β†—
WordPress.org
WordPress.org

Bahasa Melayu

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Kod adalah Puisi.
The WordPress® trademark is the intellectual property of the WordPress Foundation.