[WordPress] 外掛分享: Disable Customizer

首頁外掛目錄 › Disable Customizer
400+
安裝啟用
★★★★
4/5 分(4 則評價)
738 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v2.2.7 上架:2021-12-06

內容簡介

Disable Customizer 可以完全禁用 WordPress 網站上的 Customizer。這在您開發不使用 Customizer 的自定義網站或佈景主題時非常有用。刪除一個並沒有實際用途的額外「設定」按鈕可以簡化 WordPress 管理介面的使用體驗。

這個外掛的代碼是基於 Jesse Petersen 和 Andy Wilkerson 所製作的 Customizer Remove All Parts。

相較於原始外掛的改進點

我已經新增了自動化測試,以確保該外掛可在 WordPress 和 PHP 的新版本上運行。
藉由自動化測試所提供的協助,我已經測試過該外掛可在 WordPress 5.0 以上版本運行,而原始外掛只被測試到 WordPress 4.4。
自動化測試還可以確保該外掛可在 PHP 7 和 8 上運行,而原始外掛只被測試到 PHP 5。
由於「Customizer Remove All Parts」已被官方插件網站刪除,因為該外掛已經被認為是「無用的」。因此,「Disable Customizer」可以在官方插件網站上使用,這樣可以輕鬆安裝和維護該外掛的版本。

在改進過程中,我已經放棄了對舊版 WordPress 和 PHP 的支援。我本來想繼續支援這些版本的,但是支援太多版本的 WordPress 和 PHP 將變得越來越困難。優點是由於測試已經自動化,我可以非常確定所聲稱要支援的版本實際上可以支援。根據 wordpress.org 的統計數據,WordPress 5.0 和 PHP 7 應涵蓋 WordPress 用戶的約 90%。

支援本外掛

維護 WordPress 外掛需要大量的工作。如果您喜歡這個外掛,請考慮在 WordPress.org 上評價它。謝謝!

如果您感興趣,您還可以查看我的其他 WordPress 外掛:

Disable Media Pages
Disable Drop Cap
ACF Image Aspect Ratio Crop

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Disable Customizer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Disable Customizer lets you completely disable Customizer on your WordPress site. This is useful in cases where you develop custom sites or themes that don’t use Customizer. Removing the extra “Customize” button that doesn’t actually do anything useful simplifies the WordPress admin user experience.
The code is based on Customizer Remove All Parts by Jesse Petersen and Andy Wilkerson.
Improvements compared to the original plugin

I’ve added automated tests that ensure plugin works in new versions of WordPress and PHP.
With the help of the automated tests, I’ve tested that the plugin works in WordPress 5.0 and later. The original plugin was only tested up to WordPress 4.4.
The automated tests also ensure that the plugin works in PHP 7 and 8. The original plugin was only tested with PHP 5.
Customizer Remove All Parts was removed from the plugin directory due to being “unused”, presumably since it hasn’t been updated in 5 years. Disable Customizer is available in the plugin directory so it can be easily installed and kept up to date

In the process, I’ve dropped support for old versions of WordPress and PHP. I would have liked the continue supporting these but supporting a very wide range of WordPress and PHP versions becomes increasingly difficult. The upside is that since the tests are automated, I can be very certain that the versions claim to be supported are actually so. According to wordpress.org statistics WordPress 5.0 and PHP 7 should cover around 90% of WordPress users.
Support the plugin
Maintaining a WordPress plugin is a lot of work. If you like the plugin, please consider rating it on WordPress.org. Thank you!
If you are interested, you can also check out my other WordPress plugins:

Disable Media Pages
Disable Drop Cap
ACF Image Aspect Ratio Crop

延伸相關外掛

文章
Filter
Mastodon