[WordPress] 外掛分享: User Access Shortcodes

首頁外掛目錄 › User Access Shortcodes
WordPress 外掛 User Access Shortcodes 的封面圖片
1,000+
安裝啟用
★★★★
4.9/5 分(13 則評價)
48 天前
最後更新
問題解決
WordPress 3.6+ v2.3 上架:2014-11-21

內容簡介

這是控制文章/頁面內容展示對象最簡單的方式。此外掛可透過簡單的 shortcode,限制顯示內容的對象為已登入的使用者、訪客或特定權限的使用者。完全免費,直接拿來使用即可。

使用方式

只顯示給訪客的內容

[UAS_guest]
只有訪客才能看到這個內容。
[/UAS_guest]

只顯示給已註冊/已登入的使用者的內容

[UAS_loggedin]
只有已註冊/已登入的使用者才能看到這個內容。
[/UAS_loggedin]

只顯示給特定權限的使用者的內容

[UAS_role roles="administrator, editor"]
只有擁有管理員或編輯權限的使用者才能看到這個內容。
[/UAS_role]

只顯示給特定使用者的內容

[UAS_specific ids="23, 127"]
只有 ID 為 23 或 127 的使用者才能看到這個內容。
[/UAS_specific]

此外,可使用其他額外的參數,若需要更多資訊敬請前往此外掛的說明文件。

支援

如需協助,請到我們的支援平台聯絡我們,我們會迅速回答您的問題。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「User Access Shortcodes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This is the simplest way of controlling who sees what in your posts/pages. This plugin allows you to restrict content to logged in users only (or guests, or by roles) with simple shortcodes. What you see is what you get, and it’s totally free.
Usage
Show content only for Guests
[UAS_guest]
This content can only be seen by guests.
[/UAS_guest]

Show content only for Registered/Logged in users
[UAS_loggedin]
This content can only be seen by logged in users.
[/UAS_loggedin]

Show content ony for specific roles
[UAS_role roles="administrator, editor"]
This content can only be seen by administrators and editors.
[/UAS_role]

Show content ony for specific users
[UAS_specific ids="23, 127"]
This content can only be seen by users with IDs 23 and 127.
[/UAS_specific]

Several extra parameters are available, please go to the plugin’s documentation if you need more information on how to use this plugin.
Support
Find help on our support platform for this plugin (we’ll answer you fast, promise).

延伸相關外掛

文章
Filter
Mastodon