
內容簡介
="ugc">Dismiss Gutenberg Nag 是一個 WordPress 外掛,啟用時可以隱藏與新版 WordPress 編輯器 Guttenberg 有關的提示。如果該外掛在 mu-plugins 目錄中啟用,那麼 Guttenberg 提示將自動隱藏。Dismiss Gutenberg Nag的開發專案可於 GitHub 和 Travis CI 查看。它與 Dismiss Welcome Panel Nag 和 Dismiss Browser Update Nag 兼容。兼容使用 GlotPress 翻譯系統的 翻譯。適用於單站和多站點安裝。該外掛已於 2017年11月5日在 WordPress 官方外掛庫中獲得核准。
請注意,WP 4.9-beta3 中有一個預覽版 Guttenberg 編輯器,但後來在 WP 4.9.5-beta1-42869 和 WP 4.9.8-beta1-43502 中分別被移除,之後分別在 WP 4.9-beta4、 WP 4.9-RC1、 WP 4.9-RC2、 WP 4.9-RC3、 WP 4.9.0、 WP 4.9.1、 WP 4.9.2、 WP 4.9.3、 WP 4.9.4、 WP 4.9.5-beta1-42883、 WP 4.9.5、 WP 4.9.6、 WP 4.9.7、 WP 4.9.9、 WP 5.0-alpha 和 WP 5.1-alpha 中出現,並於 WP 4.9.8 和 WP 5.0+ 中作為其核心功能之一。 票 和 票。
未來的 1.0.6 版本將禁用 Guttenberg 編輯器並將其替換為經典編輯器。這個外掛不會向 WordPress 添加自己的代碼,僅限於管理和配置其功能,以提供最大的使用體驗,避免可能的問題。
該外掛默認僅在具有管理員許可權的用戶中顯示 Guttenberg 提示,但當啟用 Guttenberg 外掛時會顯示給所有使用者。配置選項已添加到「設定」>「撰寫」選單中,可根據需要設置提示顯示方式。更多詳情請參閱截圖。
裝在 /wp-content/mu-plugins/ 目錄下單個文件 dismiss-gutenberg-nag.php(如果不存在,請創建該目錄)是一個方便的技巧,這樣你甚至不需要啟用它,並且會被默認加載,也適用於 WordPress 安裝的第一步!
本外掛不同於其他類似的外掛,因為它使用過濾器鉤子,而不是動作鉤子。過濾器應該過濾信息,因此接收信息/數據,應用過濾器,返回信息/數據,然後使用。但過濾器仍然是動作鉤子。WordPress 將 add_filter/remove_filter 定義為「將功能鉤住到特定過濾器操作」,而 add_action/remove_action 則定義為「將功能鉤住到特定動作上」。
此外掛適用於繁體中文語系的 WordPress 系統。
外掛標籤
開發者團隊
原文外掛簡介
Dismiss try Gutenberg nag, dashboard widget, and demo menu, 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 Gutenberg Nag is the best companion of Dismiss Welcome Panel Nag, and Dismiss Browser Update Nag. Compatible with GlotPress translations. Work with Single and Multisite installation. Plugin approved in the repository of the plugin directory on 2017-11-05
This is not a replacement but just a tool for those who need it.
To date, try Gutenberg, preliminarily introduced in WP 4.9-beta3, in WP 4.9.5-beta1-42869, and WP 4.9.8-beta1-43502, respectively removed in WP 4.9-beta4, in WP 4.9-RC1, in WP 4.9-RC2, in WP 4.9-RC3, in WP 4.9.0, in WP 4.9.1, in WP 4.9.2, in WP 4.9.3, in WP 4.9.4, in WP 4.9.5-beta1-42883, in WP 4.9.5, in WP 4.9.6, in WP 4.9.7, in WP 4.9.9, in WP 5.0-alpha, and in WP 5.1-alpha, is embedded in core of WP 4.9.8 and WP 5.0+ according with this ticket and this ticket.
This plugin use Semantic Versioning MAJOR.MINOR.PATCH
Future version 1.0.6 disable Gutenberg Editor and replace it with Classic Editor.
Please note that this plugin does not add its custom code to WordPress (just to not create unexpected incompatibilities with Gutenberg or Classic Editor), but is limited only to the management and configuration of its functions, to offer the maximum of its experience of use, without introducing possible additional problems. Enjoy!
How Work?
By default try Gutenberg is displayed only for users with administrator capability in WordPress 4.9.8 but when the Gutenberg plugin is installed and activated, is displayed for all user capability type.
An option configuration page is added to the settings -> writing menu so that you can set the callout display according to your needs. Stick to the screenshots for more details.
Tips
A neat trick, is to put this single file dismiss-gutenberg-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 Gutenberg?
Gutenberg is new block editor editing experience for WordPress 5.0+
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
This is a stable project, but it is still in full development (in progress). The translations in the various languages will be done only for all the parts that certainly will not be changed several times in this phase.
Available soon in: American, Australian, Belgian FR, Brazilian, Canadian EN, Canadian FR, Catalan, Chilean, Colombian, English, French, German, Italian, New Zealander, Peruvian, Portuguese, Spanish, Swiss DE, Venezuelan, and more other languages in becoming.
Acknowledgements
Thanks to Andrea Gandino for preliminary Italian translation approval, before I became italian PTE of my plugins.
Thanks to Garrett Hyder for English (Canada) translation approval, and code contributions.
Thanks to Pascal Birchler for code contributions.
