This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to an "mu" plugin: | |
if (getenv('LAGOON_ENVIRONMENT') == 'production') { | |
// Disable ability to check for plugin updates. | |
add_filter( 'site_transient_update_plugins', 'mysite_remove_plugin_updates' ); | |
} | |
/** | |
* Helper functions to disable plugin updates. | |
*/ | |
function mysite_remove_plugin_updates( $value ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (getenv('LAGOON_ENVIRONMENT_TYPE') !== 'production') { | |
/** | |
* Disable Quant in non-production environments. | |
* Applicable to Drupal 8 or 9. | |
*/ | |
$config['quant.settings']['quant_enabled'] = 0; | |
$config['quant.settings']['quant_enabled_nodes'] = 0; | |
$config['quant.settings']['quant_enabled_taxonomy'] = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* | |
* Overrides QuantCDN config for non production envs. | |
* Place this file to the mu-plugins folder, name it site-config.php | |
*/ | |
if (empty(getenv('LAGOON_ENVIRONMENT')) || getenv('LAGOON_ENVIRONMENT') != 'production') { | |
add_filter('option_wp_quant_settings', 'override_wp_quant_settings'); |