Skip to content

Instantly share code, notes, and snippets.

@patric-boehner
Last active April 22, 2018 00:57
Show Gist options
  • Save patric-boehner/8389bee6d4a35e059745df8175b4898b to your computer and use it in GitHub Desktop.
Save patric-boehner/8389bee6d4a35e059745df8175b4898b to your computer and use it in GitHub Desktop.
WP Config Sample
<?php
/**
* This will log all errors notices and warnings to a file called debug.log in
* wp-content (If Apache does not have write permission, you may need to create
* the file first and set the appropriate permissions (i.e. use 660) )
*/
define( 'WP_DEBUG', false ); // Or false
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
}
// Force SSL on admin
define('FORCE_SSL_ADMIN', true);
// Define number of post revisions
define( 'WP_POST_REVISIONS', 3 );
// Turn off File Editing
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_UNFILTERED_HTML', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment