In every new site we create or host we should add the following lines to the user-config.php file which is located under the path:
/sites/site.url/user-configs.php
Add our default configs
// allow memory to be controlled by gridpane dashboard
define( 'WP_MEMORY_LIMIT', ini_get( 'memory_limit' ) );
// useful wp features we want to disable
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' , true );
define( 'DISALLOW_FILE_EDIT', true );
define( 'AUTOMATIC_UPDATER_DISABLED', true );
define( 'WP_AI_SUPPORT', false );
// reasonable connection and read+write timeouts
define( 'WP_REDIS_TIMEOUT', 5 );
define( 'WP_REDIS_READ_TIMEOUT', 5 );
// important plugins keys
define( 'PERFMATTERS_DISABLE_CODE', true );
define( 'PERFMATTERS_LICENSE_KEY', '[key]' );
define( 'ACF_PRO_LICENSE', '[key]' );
// super speedy plugins configs (only applied if woo is active)
define('SPRO_ATTRIBUTE_AJAX_LIMIT', 20);
define('SPRO_FIX_WOO_ONBOARDING', true);
// semantic secrets for our helper plugin to work
define( 'BMWP_CRM_URL', 'https://crm.bakemywp.com' );
define( 'BMWP_CRM_USERNAME', 'username' );
define( 'BMWP_CRM_APP_PASSWORD', 'app passworkd' );
define( 'BMWP_CRM_SECRET_KEY', 'your generated key' );
Steps to produce our secret key
- Login via terminal to our crm server
- run the wp-cli command.