Skip to content

Instantly share code, notes, and snippets.

@BHEADRICK
Created December 1, 2018 14:19
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 BHEADRICK/20c3c0d55bb138fe46f7366cf39d703c to your computer and use it in GitHub Desktop.
Save BHEADRICK/20c3c0d55bb138fe46f7366cf39d703c to your computer and use it in GitHub Desktop.
Boilerplate wp-config options
//hardcode domain
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');
// force ssl admin
define( 'FORCE_SSL_ADMIN', true );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'FS_METHOD', 'direct' );
define( 'DISABLE_WP_CRON', true );
define( 'DISALLOW_FILE_EDIT', true );
//only to prevent plugin/theme updates to be run from admin
define( 'DISALLOW_FILE_MODS', true );
@BHEADRICK
Copy link
Author

Doesn't include the standard default options, obviously

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment