Title: TR Register Only
Author: techieresource
Published: <strong>2013 年 12 月 21 日</strong>
Last modified: 2026 年 3 月 1 日

---

搜尋外掛

![](https://ps.w.org/tr-register-only/assets/banner-772x250.png?rev=3472250)

![](https://ps.w.org/tr-register-only/assets/icon-128x128.png?rev=3472250)

# TR Register Only

 由 [techieresource](https://profiles.wordpress.org/techieresource/) 開發

[下載](https://downloads.wordpress.org/plugin/tr-register-only.2.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/tr-register-only/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/tr-register-only/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/tr-register-only/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/tr-register-only/#developers)

 [技術支援](https://wordpress.org/support/plugin/tr-register-only/)

## 外掛說明

**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

## 安裝方式

 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

## 常見問題集

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈TR Register Only〉的開發相關工作。

參與者

 *   [ techieresource ](https://profiles.wordpress.org/techieresource/)

[將〈TR Register Only〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/tr-register-only)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/tr-register-only/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/tr-register-only/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/tr-register-only/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/tr-register-only/)。

## 變更記錄

#### 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

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 5.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/tr-register-only/)
 * 標籤:
 * [login](https://tw.wordpress.org/plugins/tags/login/)[members-only](https://tw.wordpress.org/plugins/tags/members-only/)
   [private](https://tw.wordpress.org/plugins/tags/private/)[registration](https://tw.wordpress.org/plugins/tags/registration/)
   [restrict](https://tw.wordpress.org/plugins/tags/restrict/)
 *  [進階檢視](https://tw.wordpress.org/plugins/tr-register-only/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/tr-register-only/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/tr-register-only/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/tr-register-only/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/tr-register-only/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/tr-register-only/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tr-register-only/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/tr-register-only/reviews/)

## 參與者

 *   [ techieresource ](https://profiles.wordpress.org/techieresource/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/tr-register-only/)