Unagi

描述

Unagi is a WordPress plugin that helps you to keep the admin dashboard clean. It’s a zero-configuration plugin, just activate and rid of the nags.

How does it work?

It buffers all the output that hooked into admin_notices action and then displays it within a dedicated notification page.

Limitations & Tips

  • If, there is a notification message only added for a particular page. It won’t be displayed on the notifications page. You can use unagi_show_diff filter to allow displaying non-global messages.
  • The plugin only respects notifications messages that have “notice” class by default. Most of the plugins use “notice” class as a wrapper of the output. You can use unagi_xpath_expression filter to customize targered xpath.
  • edit_posts is the default capability. It can be overridden with unagi_required_capability filter.
  • By default, plugin saves the output in the usermeta and renders saved output. If you need to avoid DB calls, you can use unagi_show_notifications_nicely filter.

[https://media.giphy.com/media/ubpB6XcvpYMF2/giphy.gif Unagi]

Unagi – “It’s not something you are , it’s something you have.”

Contributing & Bug Report

Bug reports and pull requests are welcome on Github.

螢幕截圖

  • Before
  • After
  • Notifications screen

安裝

Manual Installation

  1. Upload the entire /unagi directory to the /wp-content/plugins/ directory.
  2. Activate Unagi through the ‘Plugins’ menu in WordPress.

常見問題

Some of the messages are missing under the notifications page?

This plugin only respects the messages that use notice class. And, the notices that added to a particular page might not be shown. You can use unagi_show_diff filter to display them.

評價

閱讀全部1個評價

貢獻者及開發者

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

貢獻者

Unagi 外掛目前已有 7 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

修改日誌

0.1.2

  • Revert output hook change. (It causes regression when admin_notices removes on a page entirely)
  • Add heading to notifications page. Props @sanzeeb3
  • Improve WooCommerce compatibility

0.1.1

  • Change output hook

0.1.0

  • First release