[WordPress] 外掛分享: EP Admin Messages

首頁外掛目錄 › EP Admin Messages
WordPress 外掛 EP Admin Messages 的封面圖片
10+
安裝啟用
★★★☆☆
3.3/5 分(3 則評價)
4517 天前
最後更新
問題解決
WordPress 3.6+ v0.1.6 上架:2013-08-20

內容簡介

使用 EP Admin Messages,您可以在 WordPress 的管理區域中顯示訊息。每個訊息可以在多個地方顯示,並可以使用權限(capabilities)限制只顯示給特定的使用者群組。

此外掛需要您在主題資料夾中添加一個設定檔,這在主題開發者想向網站使用者顯示管理員訊息時非常有用。

掛件特色

在 WordPress 管理員區域中顯示訊息
在不同的位置顯示訊息
顯示不同的訊息給不同的使用者
使用 HTML 格式化訊息
將設定保存在 JSON 檔中,沒有設定畫面!
適合網站和主題開發者自動推送訊息更改。

您可以放置訊息在您想顯示的位置

您可以完全控制訊息顯示的位置。
每個訊息可以放在以下一個或多個位置:

儀表板
文章、頁面和自訂文章類型的概覽畫面
文章、頁面和自訂文章類型的編輯畫面
使用特定別名或基於通配符的別名的文章
使用者概覽畫面和使用者個人檔案
外掛安裝/更新頁面

訊息僅顯示給您選擇的使用者

每個訊息可以限制僅顯示給具有特定 權限 或 角色 的使用者。

例如,您可以向編輯者(即具有 "edit_posts" 權限的使用者)顯示一則訊息,向管理員(即具有 "manage_options" 權限的使用者)顯示另一則訊息。

訊息可以選擇僅顯示在您選擇的文章中

訊息可以限制僅在符合特定別名或基於通配符的別名的文章中顯示。

這樣,就可以輕鬆地為特定的頁面顯示相關信息,讓使用者知道該頁面的用途、需要輸入什麼等等。

基於 JSON 的設定檔

所有設定都使用 JSON 進行配置(查看示例配置檔),並將其放在主題目錄中。

這意味著沒有使用者可以更改設定。這也意味著您可以使用常規方式上傳更新的設定檔以添加訊息,而無需進行數據庫同步;太好了!

使用情境

為了給您一個想法,這個外掛可以用來實現以下功能。

EP Simple Messages 可用於…

… 為使用者和開發者編寫文檔。
… 顯示針對特定文章可使用的 Mustache標籤。例如:{{user.firstname}} 或 {{campaign.name}} 之類的內容。
… 在儀表板上顯示支援信息,例如網站製作者和支援問題的聯繫人。
… 讓使用者知道所有文章都可使用的簡碼。

開源

EP Admin Messages 的源代碼可在 GitHub 上獲取。

外掛標籤

開發者團隊

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

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

原文外掛簡介

With EP Admin Messages you can show messages in the admin area of WordPress. Each message can be shown at multiple places and can be limited to only be shown to specific user groups using capabilities.
This plugin requires that you add a config file to your themes folder. It’s mostly useful for theme developers that want tho show messages in the admin to the users of their site.
Plugin features

Show messages in WordPress Admin
Show messages in different places
Show different messages for different users
Format messages using HTML
Stores settings in a JSON-file. No config screen!
Suitable for website and theme developers that want to push message changes automatically.

Messages are shown where you want them to be shown
You have full control over where your messages will be shown.
Each message can be placed in one or several of the following places:

dashboard
overview screen for posts, pages, and custom post types
edit screen for posts, pages and custom post types
posts with a specific slug or a slug based on a wildcard
user overview screen and on user profiles
plugin install/update page

Messages are only shown to the users that you choose
Each message can be limited to be shown only to users with a specific capability or role.
You can for example show one message to your editors, i.e. users with the capability “edit_posts”, and another message to your admins, i.e. users with the capability “manage_options”.
Messages can be selectd to be shown only on the posts you choose
Messages can be limited to only be shown on posts that match a specific slug, or a slug that matches a wildcard.
This way it’s easy to for example show page specific information, letting a user know what a page is for, what they should put in in, and so on.
JSON-based config file
All settings are configured with a config file (view example config) that uses JSON and that you put in the themes directory.
This means that there are no settings for the user to change. This also means that you can add messages using your regular deploy method. Just upload an updated config file and you’re done. No database syncing needed; hooray!
Usage scenarios
To give you an idea what this plugin may be used for, I’ll give you a list of what I do with it.
EP Simple Messages can be used to…

… write documentation for users and developers.
… show users what Mustache tags are available for a specific post. You know, things like {{user.firstname}} or {{campaign.name}}.
… show a message on the dashboard with support info, like who made the site and who they should contact for support questions.
… let the user know what shortcodes that are available for all posts.

Open source
The source code for EP Admin Messages is available at GitHub.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon