Skip to content

Instantly share code, notes, and snippets.

@nathaningram
Last active November 28, 2023 19:28
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 nathaningram/7183d4e5c2467450d2cee1a69d4c0b0f to your computer and use it in GitHub Desktop.
Save nathaningram/7183d4e5c2467450d2cee1a69d4c0b0f to your computer and use it in GitHub Desktop.
Creating a Starter Site - Customized wp-config
<?php
/* Debug Options */
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
/* 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', 'utf8mb4' );
define( 'DB_COLLATE', '' );
$table_prefix = 'wp_';
/* WordPress Core Options */
define( 'WP_SITEURL','https://DOMAIN.com' );
define( 'WP_HOME', 'https://DOMAIN.com' );
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
define('CONCATENATE_SCRIPTS', false);
define( 'WP_CACHE', false );
/* Authentication Unique Keys and Salts. */
/* Get this at 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' );
/* Security */
define( 'FORCE_SSL_LOGIN', true );
// BEGIN iThemes Security - Do not modify or remove this line
// iThemes Security Config Details: 2
define( 'DISALLOW_FILE_EDIT', true ); // Disable File Editor - Security > Settings > WordPress Tweaks > File Editor
define( 'FORCE_SSL_ADMIN', true ); // Redirect All HTTP Page Requests to HTTPS - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
// END iThemes Security - Do not modify or remove this line
/* Post and Media Options */
define( 'WP_POST_REVISIONS', '10' );
define('AUTOSAVE_INTERVAL', 120 );
define( 'MEDIA_TRASH', true );
define( 'IMAGE_EDIT_OVERWRITE', true );
/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '64M' );
/* 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