Skip to content

Instantly share code, notes, and snippets.

@dnaber-de
Last active November 13, 2017 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnaber-de/e4a78f2354c5c5c1503f to your computer and use it in GitHub Desktop.
Save dnaber-de/e4a78f2354c5c5c1503f to your computer and use it in GitHub Desktop.
wp-config.php template
<?php
/**
* WordPress config file template
*
* @link http://wpengineer.com/2382/wordpress-constants-overview/
*/
/**
* MySQL credentials
*/
const DB_NAME = '%DB_NAME%';
const DB_USER = '%DB_USER%';
const DB_PASSWORD = '%DB_PASS%';
const DB_HOST = 'localhost';
const DB_CHARSET = 'utf8mb4';
const DB_COLLATE = 'utf8mb4_unicode_ci';
$GLOBALS[ 'table_prefix' ] = 'wp_';
/**
* WP-CLI requires the variable $table_prefix declared explicitly in
* the global namespace
*/
global $table_prefix;
#const WP_HOME = 'http://wp.localhost';
#const WP_SITEURL = 'http://wp.localhost';
const WP_ALLOW_MULTISITE = true;
const MULTISITE = false;
#const DOMAIN_CURRENT_SITE = '';
#const PATH_CURRENT_SITE = '/';
#const SITE_ID_CURRENT_SITE = 1;
#const BLOG_ID_CURRENT_SITE = 1;
#const SUBDOMAIN_INSTALL = TRUE;
#const COOKIE_DOMAIN = '';
const WP_DEBUG = false;
const WP_DEBUG_DISPLAY = false;
const WP_DEBUG_LOG = false;
const SCRIPT_DEBUG = false;
/**
* @link https://api.wordpress.org/secret-key/1.1/salt/
*/
%SECURITY_KEYS%
defined( 'ABSPATH' ) or define( 'ABSPATH', __DIR__ . '/' );
require_once ABSPATH . 'wp-settings.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment