[WordPress] 外掛分享: Page Restriction With Role

首頁外掛目錄 › Page Restriction With Role
WordPress 外掛 Page Restriction With Role 的封面圖片
10+
安裝啟用
尚無評分
3761 天前
最後更新
問題解決
WordPress 3.0.1+ v0.1 上架:2015-11-30

內容簡介

此外掛可協助您輕鬆製作模板頁面,並視所提供的額外角色且指定給不同使用者而使其可存取。

使用方法

安裝後,要製作頁面模板,請進入外掛程式根目錄,並打開 slugs.php 檔案。在這裡,您會看到一個陣列,其中鍵是您想要建立的頁面的頁面標識,而值是要顯示的頁面標籤。

現在,進入外掛資料夾中的模板目錄,並創建一個名稱與前一步驟中陣列鍵提供之名稱相同的 php 檔案。

若要建立新的額外角色,請前往 wp-admin->額外角色->新增。輸入您要建立的角色名稱。在這裡,您會找到您在範本資料夾中建立的頁面清單的核取方塊。勾選您要使用此角色存取的檔案/頁面的名稱。

進入 wp-admin->使用者,選擇一個使用者檔案並指派您在前面一個步驟中所建立的額外角色。現在,該使用者只能存取與該角色相容的頁面。

盡情享用吧!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Page Restriction With Role」→ 直接安裝(推薦)

原文外掛簡介

The plugin to help you make template pages in easy way and make them accessible depending on the additional role provided with this plugin and assigned to different users.
How to Use

After installing the plugin, to make page templates go to plguin root folder and open slugs.php. Here you will see an array where key is page slug of the page you want to create and value is the label of the page to display.

Now, go to template directory of the plugin folder and create a php file with the name that you provided as the array key in previous step.

To make new additional role , go to wp-admin-> Additional role-> Add new. Give the name of the role that you want to create. Here you will find the checkbox list of pages you created in the template folder. Check those names of the file/page which you want to make accessible with this role.

Go to wp-admin->users and select a user profile and assign him the additional role you want that you created in previous step . Now, that user will have access to pages only which are accessible with that role.

Enjoy !

延伸相關外掛

文章
Filter
Mastodon