Title: ConfigPress
Author: AAM Plugin
Published: <strong>2015 年 9 月 17 日</strong>
Last modified: 2015 年 10 月 7 日

---

搜索插件

![](https://ps.w.org/configpress/assets/banner-772x250.png?rev=1249926)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/configpress/assets/icon-256x256.png?rev=1247150)

# ConfigPress

 作者：[AAM Plugin](https://profiles.wordpress.org/vasyltech/)

[下载](https://downloads.wordpress.org/plugin/configpress.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/configpress/#description)
 * [评价](https://cn.wordpress.org/plugins/configpress/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/configpress/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/configpress/#developers)

 [支持](https://wordpress.org/support/plugin/configpress/)

## 描述

ConfigPress is a development tool with the main intent to avoid any hard-coding 
and give an easy and flexible interface to manage all your website custom settings(
options).

With ConfigPress you can define your own custom option or group of options and retrieve
them in your code by simply calling ConfigPress::get(‘option_name’) method. This
way you do not have to hard-code any sensitive or environment specific options in
your custom code.

For more information check [ConfigPress Reference](http://vasyltech.com/config-press)

## 屏幕截图

 * [[
 * Simple configurations example
 * [[
 * Simple configurations example with error

## 安装

 1. Upload “configpress” folder to the “/wp-content/plugins” directory
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. ConfigPress can be found under Settings menu

## 常见问题

  How to use ConfigPress?

ConfigPress is based on [INI configuration format](https://en.wikipedia.org/wiki/INI_file).
Define your custom options or group of options and get them in your code with ConfigPress::
get(‘option_name’) method.

  What is configuration section?

The section appears on a line by itself, in square brackets ([ and ]) and is used
to group options. In order to get an option in a section call ConfigPress::get(‘
section_name.option_name’) method.

## 评价

![](https://secure.gravatar.com/avatar/3f506c374d8cfdf5b5e9aeeb5bfac1130f1c0e1cc9794cf3cc70a26dd636a6ae?
s=60&d=retro&r=g)

### 󠀁[Simple but useful plugin](https://wordpress.org/support/topic/simple-but-useful-plugin-2/)󠁿

 [Max K](https://profiles.wordpress.org/kaminskym/) 2017 年 6 月 25 日

I think this is good plugin to easy manage some website options. This is not really
good solutions for clients, as they can broken something, but for developers that’s
fine. Also I think need use helper function over this plugin for gettings settings,
to avoid site down in case disabling plugin.

![](https://secure.gravatar.com/avatar/f28f4894e0743c43ce1054e64fec1e028262b378e20529ca2b30b1a70b56eac4?
s=60&d=retro&r=g)

### 󠀁[It Works. Very Simple Plugin for adding WordPress Options](https://wordpress.org/support/topic/it-works-very-simple-plugin-for-adding-wordpress-options/)󠁿

 [themaster5_07](https://profiles.wordpress.org/themaster5_07/) 2016 年 9 月 3 日

This plugin solves a complicated tasks easily. Yes the same could be done with editing
the database directly, but this makes it much easier. And for all of those who have
problem with AAM’s recommended use of this plugin must not be doing something correctly
as it worked beautifully. Know what a plugin does and not just follow a simple tutorial
without knowledge of what the plugin and tutorial is doing or else you will run 
into all sorts of problems.

![](https://secure.gravatar.com/avatar/5b55d9ff319321a6d474c60d140e0d36064c649558ac2a4b2bebea7685225ef6?
s=60&d=retro&r=g)

### 󠀁[And again](https://wordpress.org/support/topic/and-again-1/)󠁿

 [Vasyl Martyniuk](https://profiles.wordpress.org/vasyl_m/) 2016 年 9 月 3 日

Two guys without any considerations put two 1 start without even realizing that 
whatever they write as feedback, has nothing to do with ConfigPress. So with my 
another account I’m trying to increase the rating. Just because I can.

![](https://secure.gravatar.com/avatar/cda2bea7ed4221ee76623d4760268dd25227514bcc7f23fdb4d417e78edaaef7?
s=60&d=retro&r=g)

### 󠀁[Why not](https://wordpress.org/support/topic/why-not-4/)󠁿

 [AAM Plugin](https://profiles.wordpress.org/vasyltech/) 2016 年 9 月 3 日

Honestly I think that any rating system sucks. 99% times it is based on somebody’s
opinion which is always a subject for discussion. So I rate myself 5 stars just 
because I can.

![](https://secure.gravatar.com/avatar/f792a14f87ac5be630f192915e45d05efe75d36c77444b658c49db6a7cc56c13?
s=60&d=retro&r=g)

### 󠀁[New Owners and Now Useless](https://wordpress.org/support/topic/new-owners-and-now-useless/)󠁿

 [condor111](https://profiles.wordpress.org/condor111/) 2016 年 9 月 3 日 1 回复

Everything worked fine before the change over and now when a plugin was not needed.
THIS PLUGIN DOES NOT PLAY WELL WITH OTHER PLUGINS OR THEME OPTIONS When someone 
does find another type of AAM please let me know here. I loved this plugin and its
functions BUT NOT ANYMORE I have to remove it from many client sites OR they will
have broken sites.

![](https://secure.gravatar.com/avatar/c5c8fc8b6226f4d2d54fee04a91368ba30a1a0cb8a05cd1ea25c2b760ba64636?
s=60&d=retro&r=g)

### 󠀁[Doesn't work at all](https://wordpress.org/support/topic/doesnt-work-at-all-86/)󠁿

 [DELUCKS](https://profiles.wordpress.org/delucks/) 2016 年 9 月 3 日 1 回复

I copied the code for defining admin users from AAM to ConfigPress but that crashed
the whole website. I had to delete the plugin to get access to the website again.
As there’s no reaction on my support mail to AAM since two weeks, I always have 
to switch of AAM and can not install ConfigPress, to change the user rights and 
roles. I will now search for another plugin which can restrict the access better
and is more user friendly (the usability of ConfigPress and AAM is horrible, but
in the past the functions were ok).

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/configpress/reviews/)

## 贡献者及开发者

「ConfigPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ AAM Plugin ](https://profiles.wordpress.org/vasyltech/)

[帮助将「ConfigPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/configpress)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/configpress/)，查看[SVN仓库](https://plugins.svn.wordpress.org/configpress/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/configpress/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/configpress/)。

## 更新日志

#### 0.3

 * Fixed small issue with default option so no more “Array” as default value
 * Fixed plugin’s language domain
 * Fixed a small bug with INI validation
 * Updated language file
 * Changed color-palette for INI editor
 * Updated Codemirror library to 5.7.0
 * Updated screenshots

#### 0.2

 * Added extra check for the PHP version

#### 0.1

 * Initial version

## 额外信息

 *  版本 **0.3**
 *  最后更新：**11 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/configpress/)
 * 标签
 * [development tool](https://cn.wordpress.org/plugins/tags/development-tool/)[options](https://cn.wordpress.org/plugins/tags/options/)
   [settings](https://cn.wordpress.org/plugins/tags/settings/)
 *  [高级视图](https://cn.wordpress.org/plugins/configpress/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/configpress/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/configpress/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/configpress/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/configpress/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/configpress/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/configpress/reviews/)

## 贡献者

 *   [ AAM Plugin ](https://profiles.wordpress.org/vasyltech/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/configpress/)