
內容簡介
### 簡介
Simple PageAccess 是您安裝過的最小、最強大的存取控制外掛之一。在不到 100 行的程式碼中,它為您提供基於角色的控制,讓您能夠決定誰可以查看每個頁面,而不會讓儀表板變得混亂或降低網站速度。
### 問題與答案
- 外掛提供哪個功能以讓使用者控制存取權限?
- 加入「僅允許已登入使用者」的核取方塊到每個頁面
- 如何以清晰的編輯器介面動態顯示不同使用者角色的核取方塊?
- 透過乾淨的編輯器介面動態顯示每個使用者角色的核取方塊
- 外掛是如何實現存取限制的?
- 直接從頁面編輯器中進行存取限制,無需設定
- 未經授權的使用者會看到什麼訊息?
- 一個置中的標題訊息:「您無權查看此頁面!」
- 外掛是否需要獨立的設定頁面或造成資料庫膨脹?
- 不需要獨立的設定頁面,也不會增加資料庫負擔,僅有智慧且精簡的程式碼。
外掛標籤
開發者團隊
原文外掛簡介
Simple PageAccess is probably the smallest, most powerful access control plugin you’ll ever install.
In under 100 lines of code, it gives you role-based control over who can view each page — without cluttering your dashboard or slowing down your site.
Adds a “Only Allow Logged In Users” checkbox to each page
Dynamically show checkboxes for each user role via clean in-editor UI
Restrict access with zero configuration, straight from the page editor
Display a centered heading message: “You are not allowed to view this page!” for unauthorized users
No separate settings page, no database bloat — just smart, surgical code
Perfect for membership sites, private client pages, internal portals, or any time you want fast, targeted access control.
Credits
Built by Christopher Harden — plugins.guru-is.com
