Skip to content

Instantly share code, notes, and snippets.

@nicomollet
Last active June 1, 2023 01:12
Show Gist options
  • Save nicomollet/a7126cbe38ac515ad68e to your computer and use it in GitHub Desktop.
Save nicomollet/a7126cbe38ac515ad68e to your computer and use it in GitHub Desktop.
WP config Prod environment
<?php
//----- Environment -----//
define('WP_ENV', 'production');
//----- Database -----//
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('DB_HOST', '');
//----- Configuration -----//
define('WP_POST_REVISIONS', 5); // Number of revisions
define('EMPTY_TRASH_DAYS', 30); // Days
define('WP_MEMORY_LIMIT', '128M');
define('WP_MAX_MEMORY_LIMIT', '256M');
define('AUTOSAVE_INTERVAL', 900 ); // Seconds
//----- Debug -----//
define('SAVEQUERIES', false);
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false);
define('LIVERELOAD', false);
//define('LIVERELOAD_URL', ''); // example: http://localhost:8080
//----- Updates -----//
define('DISALLOW_FILE_MODS', true); // Disable Plugin and Theme Update and Installation
define('DISALLOW_FILE_EDIT', true); // Disable the Plugin and Theme Editor
define('AUTOMATIC_UPDATER_DISABLED', false); // To completely disable all types of automatic updates, core or otherwise
define('WP_AUTO_UPDATE_CORE', 'minor'); // Core updates: false, true, minor
//----- Plugins -----//
define ('JETPACK_DEV_DEBUG', false);
<?php
// Load locale database configuration
require_once realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp-config-locale.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment