wp-config.php Toggle Builder
Toggle common wp-config.php constants with explanations
Toggle common wp-config.php constants with explanations
// Generated by SnipKit — wp-config.php toggle builder
// Insert above the /* That's all, stop editing! */ line.
// DISALLOW_FILE_EDIT — Hide the built-in theme/plugin file editors.
define('DISALLOW_FILE_EDIT', true);
// FORCE_SSL_ADMIN — Force SSL for admin and login pages.
define('FORCE_SSL_ADMIN', true);
wp-config.php lives at the root of every WordPress install and is one of the first files WordPress loads. It defines the database connection, security keys, the table prefix, and a long list of optional constants that change core behavior. Changes apply on the next PHP request — no database migration or cache rebuild needed.
Add new define() calls above the /* That's all, stop editing! */ comment. Constants defined below that line are ignored because WordPress has already pulled in wp-settings.php. Keep credentials and salts at the top of the file and your custom tweaks grouped below them for readability.
WP_DEBUG enables PHP notices, WP_DEBUG_LOG writes them to wp-content/debug.log, and WP_DEBUG_DISPLAY should be false on any site that real users can visit.WP_POST_REVISIONS caps stored revisions and keeps the wp_posts table from ballooning on long-lived sites.DISALLOW_FILE_EDIT hides the built-in code editors and FORCE_SSL_ADMIN forces HTTPS in wp-admin.DISABLE_WP_CRON lets you run cron from the real system scheduler, which is much more reliable than triggering it on every page view.The eight authentication keys and salts (AUTH_KEY and friends) are used to sign cookies. Rotating them logs every user out and invalidates every session cookie — useful after a compromise, annoying if you do it by accident. Generate new values from the official WordPress salt generator.