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 Co
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
Screenshots & previews.
- 01Upload “configpress” folder to the “/wp-content/plugins” directory
- 02Activate the plugin through the “Plugins” menu in WordPress
- 03ConfigPress can be found under Settings menu
Frequently asked questions.
How to use ConfigPress?
ConfigPress is based on INI configuration format . 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.