Skip to content

Instantly share code, notes, and snippets.

@gyrus
Last active October 7, 2015 07:58
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 gyrus/3131308 to your computer and use it in GitHub Desktop.
Save gyrus/3131308 to your computer and use it in GitHub Desktop.
WordPress local config file
<?php
/**
* Local configuration of WordPress, for Pilau Starter
*
* @link http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/
* @link https://github.com/pilau/starter/wiki/How-to-use
*/
define( 'DB_NAME', '[[local-db-name]]' );
define( 'DB_USER', '[[local-db-user]]' );
define( 'DB_PASSWORD', '[[local-db-password]]' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
define( 'WP_DEBUG', isset( $_GET['debug'] ) ); // Used to avoid annoying notices; append '?debug=1' to quickly see debug infos
//define( 'WP_DEBUG', true ); // Or switch in this to keep errors visible
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG_LOG', false );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
define( 'WP_POST_REVISIONS', false );
define( 'AUTOSAVE_INTERVAL', 60 );
//define( 'EMPTY_TRASH_DAYS', 30 ); // Set to 0 to disable trash
//define( 'WP_MEMORY_LIMIT', '64M' );
//define( 'FORCE_SSL_ADMIN', true );
define( 'FS_METHOD', 'direct' ); // This helps updates without FTP on localhost
$table_prefix = '[[db-prefix]]';
/*
* Add constants for IDs of important locked pages here when they're different
* between environments (i.e. created after dev has been ported to staging etc.).
* Page IDs that are the same across environments (i.e. created before dev has
* been uploaded) are defined in functions.php
*/
//define( 'PILAU_PAGE_ID_EXAMPLE', 23 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment