Last active
December 17, 2017 08:02
-
-
Save blainerobison/11272283 to your computer and use it in GitHub Desktop.
wp: Options for WordPress wp-config.php
This file contains hidden or 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
<?php | |
/** | |
* Local / Staging Environment | |
* | |
* Used in conjunction with mu-plugins/disable-plugins-dev-environment.php | |
* Disables plugins specified in plugin file | |
* | |
* SET TO FALSE ON PRODUCTION | |
*/ | |
define( 'WP_LOCAL_DEV', true ); | |
/** | |
* Useful options for wp-config.php | |
* http://codex.wordpress.org/Editing_wp-config.php | |
* http://code.tutsplus.com/articles/new-wp-config-tweaks-you-probably-dont-know--wp-35396 | |
*/ | |
// Used as the default theme when installing new sites, or as fallback if | |
// current theme doesn't exist. | |
define( 'WP_DEFAULT_THEME', 'clnt000000' ); | |
// set autosave to every minute | |
define( 'AUTOSAVE_INTERVAL', 120 ); | |
// Limit post revisions | |
define( 'WP_POST_REVISIONS', 3 ); | |
// Enable trash in Media Library | |
define( 'MEDIA_TRASH', true ); | |
// Disable reinstalling WordPress default plugins (Akismet and Hello, Dolly!) | |
// and themes when upgrading WordPress core | |
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true ); | |
// Disable plugin and theme editor | |
define( 'DISALLOW_FILE_EDIT', true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment