Skip to content

Instantly share code, notes, and snippets.

@djcommandline
Last active December 15, 2015 17:38
Show Gist options
  • Save djcommandline/5297388 to your computer and use it in GitHub Desktop.
Save djcommandline/5297388 to your computer and use it in GitHub Desktop.
WP :: PHP :: wp-config
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') ) {
define('ABSPATH', dirname(__FILE__) . '/');
}
/** Check if there is a local configuration settings file
if(file_exists(ABSPATH . 'wp-config.local.php')){
require_once(ABSPATH . 'wp-config.local.php');
} else {
define('DB_NAME', 'VALUE');
/* MySQL database username */
define('DB_USER', 'VALUE');
/* MySQL database password */
define('DB_PASSWORD', 'VALUE');
/* MySQL hostname */
define('DB_HOST', 'VALUE');
/* Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/* The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment