diff --git a/seravo-plugin.php b/seravo-plugin.php index ba2fe8e0..636d68ad 100644 --- a/seravo-plugin.php +++ b/seravo-plugin.php @@ -80,6 +80,15 @@ class Loader { private static $domain = 'seravo'; public function __construct() { + + if ( defined('SERAVO_PLUGIN_DISABLED') && SERAVO_PLUGIN_DISABLED === true ) { + return; + } + + if ( getenv('SERAVO_PLUGIN_DISABLED') !== false && filter_var(getenv('SERAVO_PLUGIN_DISABLED'), FILTER_VALIDATE_BOOLEAN) === true ) { + return; + } + if ( isset(self::$_single) ) { return; }