Skip to content

Instantly share code, notes, and snippets.

@cdsalmons
Created February 3, 2016 12:44
Show Gist options
  • Save cdsalmons/ae2c0e825ef7bd77864e to your computer and use it in GitHub Desktop.
Save cdsalmons/ae2c0e825ef7bd77864e to your computer and use it in GitHub Desktop.
WP Starting point
<?php
/**
* Custom WordPress configurations on "wp-config.php" file.
*
* This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
* For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
*
* @package WordPress
* @generator GenerateWP.com
*/
/* MySQL settings */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8' );
/* MySQL database table prefix. */
$table_prefix = 'wp_';
define( 'CUSTOM_USER_TABLE', $table_prefix . 'Change default \'wp_user\' table.' );
define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'Change default \'wp_usermeta\' table.' );
/* Authentication Unique Keys and Salts. */
/* https://api.wordpress.org/secret-key/1.1/salt/ */
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
/* WordPress Localized Language. */
define( 'WPLANG', 'en' );
/* Custom WordPress URL.
define( 'WP_SITEURL', 'Your Wordpress blog/site URI. http://example.com/blog' );
define( 'WP_HOME', 'WordPress core files URI. http://example.com/wordpress' );
define( 'WP_CONTENT_URL', 'Custom \'wp-content\' URI. http://example.com/wp-content' );
define( 'UPLOADS', 'Custom \'wp-content/uploads\' URI. http://example.com/wp-content/uploads' );
define( 'WP_PLUGIN_URL', 'Custom \'wp-content/plugins\' URI. http://example.com/wp-content/plugins' );
define( 'COOKIE_DOMAIN', 'Set different domain for cookies. subdomain.example.com' );
*/
/* Specify maximum number of Revisions. */
define( 'WP_POST_REVISIONS', '3' );
/* Media Trash. */
define( 'MEDIA_TRASH', true );
/* Multisite. */
define( 'WP_ALLOW_MULTISITE', false );
/* WordPress debug mode for developers. */
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', false );
/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
/* WordPress Cache */
define( 'WP_CACHE', true );
/* Compression */
define( 'COMPRESS_CSS', true );
define( 'COMPRESS_SCRIPTS', true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP', true );
/* CRON */
define( 'DISABLE_WP_CRON', 'false' );
define( 'ALTERNATE_WP_CRON', 'false' );
define( 'WP_CRON_LOCK_TIMEOUT', 10 );
/* Updates */
define( 'WP_AUTO_UPDATE_CORE', true );
define( 'DISALLOW_FILE_MODS', false );
define( 'DISALLOW_FILE_EDIT', true );
/* 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