Linux 软件免费装
Banner图

TR Register Only

开发者 Techieresource
techieresource
更新时间 2026年3月2日 05:08
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

login registration private restrict access control members only

下载

1.0 2.0.0

详情介绍:

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: Perfect for:

安装:

  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

升级注意事项:

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.

常见问题:

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

更新日志:

2.0.0 1.0