跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Private Content Login Protector

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Private Content Login Protector

由 Abdul Rafay Ul Haque 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Private Content Login Protector lets you gate any piece of WordPress content behind a login screen that is entirely separate from the normal WordPress login (wp-login.php) and the wp_users table.

Key features:

  • Fully custom login, forgot-password and reset-password pages served at /private-login/
  • Independent user table (wp_pclp_users) with its own roles (Plugin Admin, Manager, Viewer)
  • Per-post “Protect this content” metabox for Pages, Posts, WooCommerce Products, and any public Custom Post Type
  • Product category protection field
  • Bulk protection toggles (all products / all categories / all pages / all posts / specific CPTs)
  • Fully theme-able login screen (heading, sub-heading, logo, colors, border radius, font, card width)
  • Configurable session timeout, login attempt limits with lockout, and password reset token expiry
  • Activity log (login, logout, failed login, password reset) with IP + browser
  • CSV import/export of users, JSON import/export of settings
  • Shortcodes: [private_login], [private_logout], [current_private_user] (also available as the prefixed aliases [pclp_login], [pclp_logout], [pclp_current_user])
  • Elementor and WooCommerce compatible
  • Translation-ready

螢幕擷圖

安裝方式

  1. Upload the private-content-login-protector folder to /wp-content/plugins/.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to “Private Content Login” in the admin menu to configure the login page design and behaviour.
  4. On first activation, a default account (username admin) is created — check the admin notice for the generated password and change it immediately from the Users screen.
  5. Open any Page, Post, Product, Product Category, or Custom Post Type and check “Protect this content” in the metabox / category screen, or use the bulk protection toggles in Settings.

常見問題集

Does this replace the WordPress login?

No. WordPress admin login (wp-login.php) and the wp_users table are completely untouched. This plugin manages its own separate set of users and sessions purely for gating front-end content.

Does it work with WooCommerce and Elementor?

Yes. Product pages, product categories, and the shop page can be protected, and the login templates render independently of page builders so there are no layout conflicts.

使用者評論

Excellent Private Content Protection Plugin

msaad12 2026 年 7 月 24 日
Really impressed with this plugin. It was easy to set up, and I like that it uses its own login system instead of creating WordPress users. The content protection options are flexible, and the login page is easy to customize to match the site’s branding. It works smoothly with WooCommerce and Elementor, and the extra security features are a nice bonus. Overall, it’s a reliable plugin that does exactly what it promises. Highly recommended!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Private Content Login Protector〉的開發相關工作。

參與者
  • Abdul Rafay Ul Haque

將〈Private Content Login Protector〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.2.0

  • Removed: the Custom CSS field has been removed entirely (settings UI, storage, and output). All other design options (colors, logo, background image, border radius, font, card width) are unaffected. Any Custom CSS value saved by a previous version is automatically cleared from the database.
  • Added: prefixed shortcode aliases [pclp_login], [pclp_logout], and [pclp_current_user], registered alongside the existing [private_login], [private_logout], and [current_private_user] shortcodes (which continue to work unchanged).
  • Confirmed: every plugin-owned function, class, constant, option, hook, and meta key already uses a unique Pclp/pclp_/PCLP_ prefix or namespace.

1.1.1

  • Hardened: Custom CSS is now sanitized with a dedicated, stricter routine (tag/</style>-breakout stripping, legacy CSS script-vector removal) both when saved and again at output time.
  • Hardened: Settings JSON import and Users CSV import now verify the actual uploaded file type (not just the client-supplied file name/extension) before processing.
  • Hardened: imported settings JSON is now whitelisted and re-sanitized field-by-field instead of being merged in as-is, so an import can never introduce unexpected option keys or unsanitized values.
  • Hardened: CSV user export now neutralizes cells that could be interpreted as spreadsheet formulas (CSV/formula injection protection) when opened in Excel/Sheets/etc.
  • Improved: minor output-escaping consistency pass across the admin Users screen.

1.1.0

  • Fixed: protected Product Category archives now correctly redirect guests to the custom login page and return them to the same category after login. The old URL builder could produce a link whose path didn’t match its query string under certain permalink setups (this is what caused the login screen to sometimes not appear at all); auth URLs are now built explicitly per action and work under both pretty permalinks and plain “?query-string” permalinks.
  • Added: individual (per-item) protection via searchable, AJAX-backed multi-select fields for Products, Product Categories, Pages, Posts, and any Custom Post Type — usable independently of, or together with, the existing bulk “Protect all…” toggles. Selections can be edited later from the same screen.
  • Added: Product Tag archives can now also be protected (term-level checkbox on the Tags screen, same as Product Categories).
  • Added: protected products/pages/posts are now excluded from front-end search results for logged-out guests instead of leaving them fully searchable.
  • Added: protected pages/templates are no longer served from page caches — a protected response now sends no-cache headers and sets DONOTCACHEPAGE.
  • Added: rewrite rules automatically re-flush after a plugin update, so the pretty-permalink login URL never goes stale.
  • Added: Elementor editor/preview mode is no longer redirected away from protected content, so templates can still be edited normally.
  • Improved: dashboard “Protected” counts now include individually-selected items, not just the per-item checkbox.

1.0.0

  • Initial release.

中繼資料

  • 版本 1.2.0
  • 最後更新 1 個月前
  • 啟用安裝數 少於 10 次
  • WordPress 版本需求 5.8 或更新版本
  • 已測試相容的 WordPress 版本 7.0.4
  • PHP 版本需求 7.4 或更新版本
  • 語言
    English (US)
  • 標籤:
    content-protectionloginmembershiprestrict contentwoocommerce
  • 進階檢視

評分

5 星,滿分為 5 星
  • 1 個 5 星使用者評論 5 星 1
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 0 個 1 星使用者評論 1 星 0

撰寫評分

查看全部使用者評論

參與者

  • Abdul Rafay Ul Haque

技術支援

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

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.