The wp-config.php file has many interesting features. With this one file you can really fine-tune how your WordPress installation functions.
Many default WordPress settings may be adjusted using the ‘define‘ function. This may save you from having to download a bunch of plugins to manage similar settings. But a word of caution. They should only be adjusted if you know what you are doing.
wp-config.php WordPress Variables
define( 'AUTOSAVE_INTERVAL', 300 ); //auto save post/page in seconds
define( 'WP_POST_REVISIONS', 5 ); //limit post revisions to just 5
define( 'WP_POST_REVISIONS', false ); //disables post revisions completely
define( 'WP_AUTO_UPDATE_CORE', false ); //disables automatic WordPress core updates
define( 'EMPTY_TRASH_DAYS', 30 ); //auto clean your trash
define( 'WP_CRON_LOCK_TIMEOUT', 120 ); //cron lockout timer
define( 'WP_MEMORY_LIMIT', '3000M' ); //not recommended, only use temporarily to run large scripts
If this article was helpful please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.