內容簡介
這個外掛允許作者基於使用者的登入狀態來限制他們訪問個別的頁面、文章和選單項目。
作者的功能
您可以使用「Simple Access Control」小工具來在編輯時限制頁面和文章的訪問。
您可以使用「Simple Access Control」設置頁面中的項目,在訪客訪問被鎖住的頁面時顯示的消息。
管理頁面和文章清單中會顯示被鎖定的狀態。
一個「Loggedin Text」小工具可用,只顯示給已登入的使用者。
您可以設置一個選項,在篩選時仍顯示選單。
您可以設置一個選項,在直接訪問限制頁面時強制顯示「404 Not Found」錯誤。
使用者可見的功能
被鎖住的頁面和文章不會顯示。
被鎖住的項目從標準和自訂選單中移除。
如果您直接使用地址訪問或使用上一頁/下一頁連結訪問,系統會顯示讓您登入的訊息。
訪問受限制的頁面時可能會顯示「404 Not Found」錯誤。
訊息中會顯示登入/登出連結。
「Loggedin Text」小工具不可見。
頁面和文章可以隱藏給已登入或未登入的使用者。
其他功能
「Simple Access Control」不支援其他功能。程式碼簡單、小巧且有良好的文件說明,
因此,您可以將其用作自己訪問控制的起點。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows authors to restrict the users’s access to individual pages, posts and menu items based on the user’s logged in status.
Features for Authors
You can restrict pages and posts while editing by using the “Simple Access Control” widget.
You can set the message displayed when a visitor accesses a locked page using the “Simple Access Control” item in the Settings menu
The locked status is shown in the admin page and post lists
a “Loggedin Text” widget is available that only displays text to logged in users
You can set an option to display the menu even when filtered
You can set an option to force a 404 Not Found error on direct access to a restricted page
Features seen by users
Locked pages and posts are not displayed
Locked items are removed from standard and custom menus
A message asking you to log in is displayed if you access it directly using its address or using the next and previous links
A 404 Not Found error may be displayed on access to a restricted page
A login/logout link is displayed in the mesage
Loggedin Text widgets are not visible
Pages and posts can be hidden from either logged in or not logged in users
Additional Features
There are no additional features supported by Simple Access Control. The code is simple, small and well documented,
so you can use it as a starting point for your own access control plugin.
