[WordPress] 外掛分享: Config Constants

首頁外掛目錄 › Config Constants
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
3286 天前
最後更新
問題解決
WordPress 4.0+ v0.2 上架:2012-05-18

內容簡介

注意:此外掛仍屬於 Beta 版本。建議您不要在生產網站上運行此外掛,並務必備份您的 wp-config.php 檔案。

WordPress 常數(Constants)如 WP_DEBUG 可以在 wp-config.php 定義,但每次需要更改時都必須手動編輯。現在,您可以直接在 WordPress 管理員中編輯幾個常見的 wp-config.php 常數了!

您可以使用 Config Constants 修改的 WordPress 常數包括:

WP_DEBUG
WP_DEBUG_LOG
WP_DEBUG_DISPLAY
SCRIPT_DEBUG
CONCATENATE_SCRIPTS
SAVEQUERIES
DISALLOW_FILE_MODS
DISALLOW_FILE_EDIT
WP_ALLOW_REPAIR

未在 wp-config.php 中定義上述常數時,它們將自動添加。已在 wp-config.php 中指定的常數將修改其值。

此外掛的一個關鍵功能是雙向編輯的支援。這意味著,如果您希望手動編輯 wp-config.php 常數,您仍然可以這樣做,並且您的更改將與外掛設定自動同步。同樣地,如果您通過外掛選項頁面更新常數的值,wp-config.php 將立即更新!

如果您認為此外掛有用,請給我們評價。🙂

請造訪我們的WordPress 外掛網站。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

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

原文外掛簡介

NOTE: This Plugin is still in beta. It’s recommended that you don’t run this Plugin on production sites yet, and don’t forget to backup your wp-config.php file.
WordPress constants such as WP_DEBUG can be defined in wp-config.php but have to be edited manually every time you need to make a change. But no longer! You can now edit several common wp-config.php constants directly from within the WordPress admin!
The current list of WordPress constants you can modify with Config Constants are:

WP_DEBUG
WP_DEBUG_LOG
WP_DEBUG_DISPLAY
SCRIPT_DEBUG
CONCATENATE_SCRIPTS
SAVEQUERIES
DISALLOW_FILE_MODS
DISALLOW_FILE_EDIT
WP_ALLOW_REPAIR

More constants will be supported in future versions.
If none of the above constants are defined in wp-config.php then they will be added automatically. Constants already specified in wp-config.php will have their values modified.
Also, a key feature of the Plugin is the support for two-way editing. This means you can still edit wp-config.php constants manually if you wish and your changes will be automatically synchronised with Plugin settings. Likewise, if you update the value of a constant via the Plugin options page then wp-config.php is immediately updated!
Please rate this Plugin if you find it useful. 🙂
Visit our WordPress plugin site.

延伸相關外掛

文章
Filter
Mastodon