[WordPress] 外掛分享: Dismiss Welcome Panel Nag Dashboard Widget

首頁外掛目錄 › Dismiss Welcome Panel Nag Dashboard Widget
WordPress 外掛 Dismiss Welcome Panel Nag Dashboard Widget 的封面圖片
10+
安裝啟用
尚無評分
2836 天前
最後更新
問題解決
WordPress 3.3+ PHP 5.2.4+ v1.0.1 上架:2017-11-08

內容簡介

啟用此外掛後,Dismiss Welcome Panel nag 可以自動關閉儀表板小工具,或在 mu-plugins 目錄中發現時自動關閉。這個外掛的開發在 GitHub 和 Travis CI 上進行。 Dismiss Welcome Panel Nag 是 Dismiss Gutenberg Nag 和 Dismiss Browser Update Nag 的最佳夥伴。與 GlotPress 的翻譯兼容。該外掛已于2017年11月9日在外掛目錄的存儲庫中得到批准。

提示

巧妙的方法是將此單個文件dismiss-welcome-nag.php(而不是其父目錄)放在 /wp-content/mu-plugins/ 目錄中(如果不存在,創建它),這樣您甚至不需要啟用它,並且將通過默認加載,同時也是 WordPress 安裝設置的第一個步驟!

解釋

這個外掛和其他類似的外掛不同,因為它使用了過濾鉤子(hook),而不是操作鉤子(hook)。過濾應該過濾信息,因此接收信息/數據,應用過濾器並返回信息/數據,然後再使用。但是,過濾器仍然是操作鉤子。WordPress將 add_filter/remove_filter 定義為“將函數掛鉤到特定的過濾器操作”,而 add_action/remove_action 則定義為“將函數掛鉤到特定的操作”。

什麼是歡迎面板?

歡迎面板是 WordPress 3.5+ 的儀表板小工具體驗。

關於它

該插件的代碼不是使用 php 框架撰寫的,而是使用簡單的 php 編輯器手動撰寫的,兼容 UTF-8無 BOM,與 Unix LF。為了避免代碼損壞,請勿使用 WordPress內置的編輯器或任何不符合規格的編輯器進行編輯。

翻譯

由 Luciano Croce 翻譯。

感謝

感謝 Andrea Gandino (andg) 批准了 意大利語 的翻譯。

感謝 Garrett Hyder 批准了 英語(加拿大) 的翻譯。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dismiss Welcome Panel Nag Dashboard Widget」→ 直接安裝(推薦)

原文外掛簡介

Dismiss Welcome Panel nag, dashboard widget, when it is activated, or automatically, if it is in mu-plugins directory. Development for this plugin, takes place at GitHub, and Travis CI. Dismiss Welcome Panel Nag is the best companion of Dismiss Gutenberg Nag, and Dismiss Browser Update Nag. Compatible with GlotPress translations. Plugin approved in the repository of the plugin directory on 2017-11-09
Tips
A neat trick, is to put this single file dismiss-welcome-nag.php (not its parent directory) in the /wp-content/mu-plugins/ directory (create it if not exists) so you won’t even have to enable it, and will be loaded by default, also, since first step installation of WordPress setup!
Explanation
This, is different from the other similar plugins, because uses the filter hook, and not the action hook. Filters should filter information, thus receiving information/data, applying the filter and returning information/data, and then used. However, filters are still action hooks. WordPress defines add_filter/remove_filter as “hooks a function to a specific filter action”, and add_action/remove_action as “hooks a function on to a specific action”.
What is Welcome Panel?
Welcome Panel is a dashboard widget experience for WordPress 3.5+
About it
The code of this plugin, is not written with a php framework, but with a simple php editor, manually, compatible UTF-8 without BOM, and Unix LF. To avoid code corruption, do not edit it with WordPress embedded editor, or with any specifications incompatible editor.
Translation
Translated by: Luciano Croce
Acknowledgements
Thanks to Andrea Gandino (andg) for Italian translation approval.
Thanks to Garrett Hyder for English (Canada) translation approval.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon