Skip to content

Instantly share code, notes, and snippets.

@danielpataki
Last active October 9, 2024 00:33
Show Gist options
  • Save danielpataki/d3eee86104b3c58d0dd0 to your computer and use it in GitHub Desktop.
Save danielpataki/d3eee86104b3c58d0dd0 to your computer and use it in GitHub Desktop.
WordPress Config File
define( 'ALTERNATE_WP_CRON', true );
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');
define( 'AUTOSAVE_INTERVAL', 120 );
define( 'DISABLE_WP_CRON', true );
define( 'WP_CRON_LOCK_TIMEOUT', 120 );
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');
define('DB_PASSWORD', 'password_here');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define( 'WP_DEBUG_LOG', true );
define('WP_DEFAULT_THEME', 'twentyeleven');
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true );
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true );
// Moving the wp-content directory
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/extensions' );
define( 'WP_CONTENT_URL', 'http://mywebsite.com/extensions' );
// Moving the plugins directory
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/extensions/plugins' );
define( 'WP_PLUGIN_URL', 'http://mywebsite.com/extensions/plugins' );
define( 'PLUGINDIR', dirname(__FILE__) . '/extensions/plugins' );
// Creating an additional theme directory
register_theme_directory( dirname( __FILE__ ) . '/themes-dev' );
// Moving the uploads directory
define( 'UPLOADS', 'uploads' );
define( 'WP_MEMORY_LIMIT', '32M' );
define( 'WP_MAX_MEMORY_LIMIT', '128M' );
define( 'WPMU_PLUGIN_DIR', dirname(__FILE__) . '/extensions/builtin' );
define( 'WPMU_PLUGIN_URL', 'http://mywebsite.com/extensions/builtin' );
define( 'WP_ALLOW_MULTISITE', true );
$table_prefix = 'wp_';
define('WP_DEBUG', false);
global $wpdb;
echo "<pre>";
print_r( $wpdb->queries );
echo "</pre>";
define( 'NOBLOGREDIRECT', 'http://mainwebsite.com' );
// Disable post revisions
define( 'WP_POST_REVISIONS', false );
// Limit revisions to 4
define( 'WP_POST_REVISIONS', 4 );
define( 'SAVEQUERIES', true );
define( 'SCRIPT_DEBUG', true );
define( 'CONCATENATE_SCRIPTS', false );
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );
define( 'EMPTY_TRASH_DAYS', 3 );
# Disable all automatic updates:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
# Disable all core updates:
define( 'WP_AUTO_UPDATE_CORE', false );
# Enable all core updates, including minor and major:
define( 'WP_AUTO_UPDATE_CORE', true );
# Enable core updates for minor releases (default):
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
define( 'CUSTOM_USER_TABLE', $table_prefix.'peeps' );
define( 'CUSTOM_USER_META_TABLE', $table_prefix.'peepmeta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment