Skip to content

Instantly share code, notes, and snippets.

@alanpilloud
Last active November 7, 2016 10:58
Show Gist options
  • Save alanpilloud/90ecbc8df965cf78fa4f to your computer and use it in GitHub Desktop.
Save alanpilloud/90ecbc8df965cf78fa4f to your computer and use it in GitHub Desktop.
usefull config options #wp
<?php
define('DISALLOW_FILE_EDIT', true);
define('WP_DEBUG', true);
define('WP_AUTO_UPDATE_CORE', false);
define('WP_POST_REVISIONS', false );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true ); //Log errors in a file
define( 'WP_DEBUG_DISPLAY', false ); //blocks message display on the website
define('SAVEQUERIES', true); //Save MySql queries in the global var $wpdb->queries
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment