Skip to content

Instantly share code, notes, and snippets.

@Zodiac1978
Last active July 22, 2016 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zodiac1978/fcf168b6cd00add6e541 to your computer and use it in GitHub Desktop.
Save Zodiac1978/fcf168b6cd00add6e541 to your computer and use it in GitHub Desktop.
Interesting things for your wp-config.php
// Disabling the plugin and theme editor for more security
define('DISALLOW_FILE_EDIT', true);
// Check for a local config file
if ( file_exists( dirname( __FILE__ ) . '/wp-local-config.php' ) ) {
/* Get the settings for the development site */
include( dirname( __FILE__ ) . '/wp-local-config.php' );
} else {
// Settings for live site
// e.g. define('WP_DEBUG', false);
}
// Change autosave interval
define('AUTOSAVE_INTERVAL', 600 ); // seconds
// Disable Revisions
define( 'WP_POST_REVISIONS', 0 );
// Earlier deletion of trashed items
define( 'EMPTY_TRASH_DAYS', 20 );
// More Memory
define('WP_MEMORY_LIMIT', '128M');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment