Skip to content

Instantly share code, notes, and snippets.

@metodiew
Last active January 11, 2016 16:45
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 metodiew/5559228 to your computer and use it in GitHub Desktop.
Save metodiew/5559228 to your computer and use it in GitHub Desktop.
my wp-config tricks for localhost development
define( 'WP_DEBUG', true );
error_reporting( E_ALL );
ini_set( 'display_errors', 'yes' );
define( 'FS_METHOD', 'direct' ); // Allows you to upload/update themes/plugins/core from your localhost
define( 'WP_DEBUG_LOG', true );
define( 'SCRIPT_DEBUG', true );
define( 'MEDIA_TRASH', true ); // Enable the "Trash" Feature for Media Files
define( 'DISALLOW_FILE_EDIT', true ); // Disable theme/plugin editor
define( 'WP_POST_REVISIONS', 5 ); // Limit the number of revisions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment