Skip to content

Instantly share code, notes, and snippets.

@nicomollet
Last active August 29, 2015 14:06
Show Gist options
  • Save nicomollet/d8c69f6db5fab38aa9ca to your computer and use it in GitHub Desktop.
Save nicomollet/d8c69f6db5fab38aa9ca to your computer and use it in GitHub Desktop.
WP config Local environment
<?php
//----- Environment -----//
define('WP_ENV', 'local');
//----- Database -----//
define('DB_NAME', '<dbname>');
define('DB_USER', '<dbuser>');
define('DB_PASSWORD', '<dbpassword>');
define('DB_HOST', '<dbhost>');
//----- Configuration -----//
define('WP_POST_REVISIONS', 0); // Number of revisions
define('EMPTY_TRASH_DAYS', 5); // Days
define('WP_MEMORY_LIMIT', '128M');
define('WP_MAX_MEMORY_LIMIT', '256M');
define('AUTOSAVE_INTERVAL', 900 ); // Seconds
//----- Debug -----//
define('SAVEQUERIES', false);
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false);
define('LIVERELOAD', true);
//define('LIVERELOAD_URL', ''); // example: http://localhost:8080
//----- Updates -----//
define('DISALLOW_FILE_MODS', false); // Disable Plugin and Theme Update and Installation
define('DISALLOW_FILE_EDIT', true); // Disable the Plugin and Theme Editor
define('AUTOMATIC_UPDATER_DISABLED', false); // To completely disable all types of automatic updates, core or otherwise
define('WP_AUTO_UPDATE_CORE', 'minor'); // Core updates: false, true, minor
//----- Plugins -----//
define ('JETPACK_DEV_DEBUG', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment