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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/config-constants/#description)
 * [评价](https://cn.wordpress.org/plugins/config-constants/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/config-constants/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/config-constants/)
 * 标签
 * [config](https://cn.wordpress.org/plugins/tags/config/)[constant](https://cn.wordpress.org/plugins/tags/constant/)
   [debug](https://cn.wordpress.org/plugins/tags/debug/)[mode](https://cn.wordpress.org/plugins/tags/mode/)
 *  [高级视图](https://cn.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/)