Title: Config Constants
Author: David Gwyer
Published: <strong>2012 年 5 月 19 日</strong>
Last modified: 2017 年 3 月 20 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/config-constants.svg)

# Config Constants

 由 [David Gwyer](https://profiles.wordpress.org/dgwyer/) 開發

[下載](https://downloads.wordpress.org/plugin/config-constants.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/config-constants/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/config-constants/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/config-constants/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/config-constants/#developers)

 [技術支援](https://wordpress.org/support/plugin/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](http://www.wpgoplugins.com).

## 螢幕擷圖

[⌊Where all the magic happens.⌉⌊Where all the magic happens.⌉[

Where all the magic happens.

## 安裝方式

Instructions for installing:

 1. In your WordPress admin go to Plugins -> Add New.
 2. Enter Config Constants in the text box and click Search Plugins.
 3. In the list of Plugins click Install Now next to the Config Constants Plugin.
 4. Once installed click to activate.
 5. Visit the Plugin options page via Settings -> Config Constants.
 6. On the Plugin options page some/all of the supported constants may be initially
    disabled as you can only modify existing constants defined in wp-config.php. To
    be able to edit a constant directly in the admin just add it to your wp-config.
    php file and it will get picked up automatically in the Plugin settings.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Config Constants〉的開發相關工作。

參與者

 *   [ David Gwyer ](https://profiles.wordpress.org/dgwyer/)

[將〈Config Constants〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/config-constants)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/config-constants/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/config-constants/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/config-constants/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/config-constants/)。

## 變更記錄

_0.2_

 * Plugin completely overhauled to work with WordPress 4.8 and fix outdated code.

_0.1_

 * Initial release.

## 中繼資料

 *  版本 **0.2**
 *  最後更新 **9 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.8.28**
 *  語言
 * [English (US)](https://wordpress.org/plugins/config-constants/)
 * 標籤:
 * [config](https://tw.wordpress.org/plugins/tags/config/)[constant](https://tw.wordpress.org/plugins/tags/constant/)
   [debug](https://tw.wordpress.org/plugins/tags/debug/)[mode](https://tw.wordpress.org/plugins/tags/mode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/config-constants/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/config-constants/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/config-constants/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/config-constants/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/config-constants/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/config-constants/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/config-constants/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/config-constants/reviews/)

## 參與者

 *   [ David Gwyer ](https://profiles.wordpress.org/dgwyer/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/config-constants/)