這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Dash Notifier

描述

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.

螢幕截圖

  • Dashboard

評價

There are no reviews for this plugin.

貢獻者及開發者

“Dash Notifier” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Dash Notifier 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2 – Mar 26 2021

  • Potential PHP notice fix.

1.1.2 – Apr 11 2019

  • [Update] Fixed a potential PHP notice in certain PHP environment.

1.1.1 – Mar 20 2019

  • 🐞 Deactivate notifier before uninstalling to avoid warning in plugin list.

1.1 – Mar 12 2019

  • [Tweak] Able to save message when using short init.

1.0 – Feb 28 2019

  • 🎉 Initial Release.