Created
February 23, 2026 19:18
-
-
Save vapvarun/e95ac5894cf190898e215b0fead326da to your computer and use it in GitHub Desktop.
wp-config.php Tweaks: 15 Hidden Settings (tweakswp.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_MEMORY_LIMIT', '256M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '512M' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_POST_REVISIONS', 5 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'AUTOSAVE_INTERVAL', 120 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'EMPTY_TRASH_DAYS', 7 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'DISALLOW_FILE_EDIT', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'DISALLOW_FILE_MODS', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'FORCE_SSL_ADMIN', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'AUTH_KEY', 'unique-phrase-here' ); | |
| define( 'SECURE_AUTH_KEY', 'unique-phrase-here' ); | |
| define( 'LOGGED_IN_KEY', 'unique-phrase-here' ); | |
| define( 'NONCE_KEY', 'unique-phrase-here' ); | |
| define( 'AUTH_SALT', 'unique-phrase-here' ); | |
| define( 'SECURE_AUTH_SALT', 'unique-phrase-here' ); | |
| define( 'LOGGED_IN_SALT', 'unique-phrase-here' ); | |
| define( 'NONCE_SALT', 'unique-phrase-here' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_HTTP_BLOCK_EXTERNAL', true ); | |
| define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,downloads.wordpress.org,*.github.com' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $table_prefix = 'wp_custom_'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'DISABLE_WP_CRON', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| */15 * * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_CRON_LOCK_TIMEOUT', 120 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Production-safe debugging — log everything, display nothing | |
| define( 'WP_DEBUG', true ); | |
| define( 'WP_DEBUG_LOG', true ); | |
| define( 'WP_DEBUG_DISPLAY', false ); | |
| define( 'SCRIPT_DEBUG', true ); | |
| // Optional: log database queries | |
| define( 'SAVEQUERIES', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'AUTOMATIC_UPDATER_DISABLED', true ); | |
| // Or control specific update types: | |
| define( 'WP_AUTO_UPDATE_CORE', 'minor' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/assets' ); | |
| define( 'WP_CONTENT_URL', 'https://yoursite.com/assets' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment