WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by David Gwyer v0.2

Config Constants

Modify WP_DEBUG and other WordPress constants directly in the WordPress admin rather than manually editing them via wp-config.php!

Config Constants

The facts

Rating
5★ from 1
Active installs
100+
Price
Free
Last updated
11 Aug 2026
Added
May 2012
Requires WP
4.0
Tested up to
WP 4.8.30
Downloads
7,640

Our analysis

AI-assisted

Config Constants is a WordPress plugin that allows you to edit certain WordPress constants directly from the WordPress admin interface, rather than manually modifying the wp-config.php file. This is particularly useful for developers who need to change settings like WP_DEBUG or SCRIPT_DEBUG frequently without the hassle of file editing.

The plugin currently supports a range of constants, including WP_DEBUG, WP_DEBUG_LOG, and others. It also features two-way editing, meaning changes made in the plugin settings will be reflected in wp-config.php and vice versa. However, it is still in beta and not recommended for use on production sites without backups.

Best for: This plugin is suited for developers who frequently modify WordPress constants during development.

What it does well

  • Allows editing of WordPress constants from the admin interface
  • Supports two-way editing with wp-config.php
  • Automatically adds constants if not defined in wp-config.php

Where it falls short

  • Still in beta; not recommended for production sites
  • Limited to specific WordPress constants

Verdict

Config Constants provides a convenient way to manage WordPress constants, but its beta status suggests caution for production use.

From the developer

David Gwyer's own description of Config Constants, lightly tidied.

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)