Skip to content

Instantly share code, notes, and snippets.

@chuckreynolds
Last active April 25, 2019 06:12
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 chuckreynolds/a5b1b416a1125322f9caa6c2e4f8e0b9 to your computer and use it in GitHub Desktop.
Save chuckreynolds/a5b1b416a1125322f9caa6c2e4f8e0b9 to your computer and use it in GitHub Desktop.
local / development WordPress wp-config file
<?php
define('WP_CACHE', false); // true/false testing Simple Cache
define('DISABLE_WP_CRON', false);
define('DISALLOW_FILE_EDIT', true);
#define('WP_ALLOW_REPAIR', true);
/** Local Dev settings **/
define('WP_DEBUG', true);
if (WP_DEBUG) {
define('WP_ENV', 'development');
define('WP_LOCAL_DEV', true);
define('JETPACK_DEV_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('SCRIPT_DEBUG', true);
if (defined('DOING_AJAX') && DOING_AJAX || defined('DOING_CRON') && DOING_CRON) {
define('WP_DEBUG_DISPLAY', false);
#@ini_set( 'display_errors', 0 );
} else {
define('WP_DEBUG_DISPLAY', true);
}
}
/** MySQL settings - You can get this info from your web host */
define('DB_NAME', 'xxxxxxxxx');
define('DB_USER', 'xxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', '');
/**
* Authentication Unique Keys and Salts.
* @link https://api.wordpress.org/secret-key/1.1/salt/
*/
define('AUTH_KEY', '');
define('SECURE_AUTH_KEY', '');
define('LOGGED_IN_KEY', '');
define('NONCE_KEY', '');
define('AUTH_SALT', '');
define('SECURE_AUTH_SALT', '');
define('LOGGED_IN_SALT', '');
define('NONCE_SALT', '');
/** WordPress Database Table prefix. */
$table_prefix = 'wp_';
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment