前言介紹
- 這款 WordPress 外掛「Dash Notifier」是 2019-02-27 上架。
- 目前有 20000 個安裝啟用數。
- 上一次更新是 2021-03-26,距離現在已有 1500 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
dashboard notify | plugin installer |
內容簡介
這個外掛可以讓開發人員和系統管理員在客戶的 WordPress 儀表板上新增通知橫幅。它有助於廣播重要訊息以及建議客戶可能會覺得有用的外掛,並且是透過 API 處理。
要新增新的橫幅,請在 setup_theme 鉤子之前預先定義一個名為 DASH_NOTIFIER_MSG 的 PHP 常數,如下:
define( 'DASH_NOTIFIER_MSG', json_encode( array( 'msg' => '在橫幅中顯示的訊息', 'plugin' => 'your_plugin_slug', 'plugin_name' => '你的外掛名稱' ) ) ) ;
你可以在你自己的外掛或 functions.php 中定義 'DASH_NOTIFIER_MSG',只要它在 setup_theme 之前就可以了。
'plugin' 參數是可選的。如果設定了,訊息中將包含一個安裝按鈕,讓客戶可以一鍵安裝外掛。
'plugin_name' 參數也是可選的。如果提供了 'plugin',但沒有提供 'plugin_name',則名稱將會預設為在 WordPress 外掛目錄中找到的正式名稱。
例如:如果你要推薦的外掛是 https://wordpress.org/plugins/hello-dolly/,則將 'your_plugin_slug' 替換為 'hello-dolly',將 'Your Plugin Name' 替換為 'Hello Dolly'。
注意:你的客戶必須安裝這個外掛,才能顯示通知橫幅。
原文外掛簡介
This plugin can be used by developers and system administrators to add a notification banner to their clients’ WordPress Dashboard. It’s useful for broadcasting important messages as well as suggesting plugins that clients’ might find useful, and is handled through an API.
To add a new banner, predefine a PHP constant called DASH_NOTIFIER_MSG before the setup_theme hook, like so:
define( 'DASH_NOTIFIER_MSG', json_encode( array( 'msg' => 'Your message to display in banner', 'plugin' => 'your_plugin_slug', 'plugin_name' => 'Your Plugin Name' ) ) ) ;
You can define ‘DASH_NOTIFIER_MSG’ in your own plugin or in functions.php, as long as it is before setup_theme.
The plugin parameter is optional. If set, an install button will be included with the message, allowing the client to install the plugin in one click.
The plugin_name parameter is also optional. If plugin is provided but plugin_name is not, the name will default to the official name found in the WordPress Plugin Directory.
Example: If the plugin you’d like to recommend is https://wordpress.org/plugins/hello-dolly/, replace your_plugin_slug with hello-dolly and Your Plugin Name with Hello Dolly.
NOTE: Your clients must have this plugin installed in order for the notification banner to be displayed.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Dash Notifier」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.1.1 | 1.1.2 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。