large shade tree



Recent Posts

Shade Tree Sites |Building Better Websites

WordPress wp-config Snippets

Here are a few snippets that can be added to your wp-config to improve your wordpress website:

Post Revisions

limit number of saved revisions define(‘WP_POST_REVISIONS’, 3); //
disable post-revisioning define(‘WP_POST_REVISIONS’, false); //

Change Autosave Interval (WordPress is already set to autosave every 60 seconds)

define(‘AUTOSAVE_INTERVAL’, 60); // number in seconds

Auto Empty Trash (WordPress is set to empty every 30 days)

define(‘EMPTY_TRASH_DAYS’, 7); // number in days

Auto Database Repair

define(‘WP_ALLOW_REPAIR’, true);

Use on an as needed basis.  Include the snippet then open the database repair page at this url: ‘’.  Once the repair is complete remove the snippet from the wp-config file – if left anyone could visit page and make changes to yoru database.


define(‘WP_DEBUG’, true);

‘true’ = enable; ‘false’ = disable

Increase php Memory (WordPress is set at 32M)

define(‘WP_MEMORY_LIMIT’, ’32M’); change to 64, 96, 128 etc if your host allows

Disable Theme & Plugin File Editing


Define Site URL

define(‘WP_HOME’, ‘’);
define(‘WP_SITEURL’, ‘’);