WordPress Configuration Tricks

Take a look at this post for a list of useful “hidden” configuration settings for your WordPress installation.
I found some nice tricks that I’ve applied to my wp-config.php:

// Number of post revision to keep
define('WP_POST_REVISIONS', 3);
 
// Installation path and template path to reduce database queries
define('WP_HOME', 'http://your_site_url.com');
define('WP_SITEURL', 'http://your_wordpress_directory_url.com');
 
define('TEMPLATEPATH', '/absolute/path/to/wp-content/themes/active-theme');
define('STYLESHEETPATH', '/absolute/path/to/wp-content/themes/active-theme');
 
// Security keys to improve cookies encription
define('AUTH_KEY', 'randomKey');
define('SECURE_AUTH_KEY', 'randomKey');
define('LOGGED_IN_KEY', 'randomKey');
define('NONCE_KEY', 'randomKey');

via Digging Into WordPress.

Leave a Reply