Last active
July 22, 2016 09:07
-
-
Save Zodiac1978/fcf168b6cd00add6e541 to your computer and use it in GitHub Desktop.
Interesting things for your wp-config.php
This file contains 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
// 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