Skip to content

Instantly share code, notes, and snippets.

@awakekat
Last active July 19, 2017 14:47
Show Gist options
  • Save awakekat/d5a3312d2869e1387821 to your computer and use it in GitHub Desktop.
Save awakekat/d5a3312d2869e1387821 to your computer and use it in GitHub Desktop.
Custom wp-admin tweaks
/*
* Custom Tweaks
*/
define('WP_HOME', 'http://sitename.com'); // Lock settings of URL in Admin
define('AUTSAVE_INTERVAL', 120); // in seconds
define('WP_POST_REVISIONS', 4); // Max # of post revision history
define('EMPTY_TRASH_DAYS', 3); // # of days
define('DISALLOW_FILE_EDIT', true); // Lock out CSS in Admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment