diff --git a/query-monitor.php b/query-monitor.php
index <HASH>..<HASH> 100644
--- a/query-monitor.php
+++ b/query-monitor.php
@@ -26,6 +26,9 @@ GNU General Public License for more details.
 
 defined( 'ABSPATH' ) or die();
 
+if ( defined( 'QM_DISABLED' ) and QM_DISABLED )
+	return;
+
 # No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
 foreach ( array( 'Backtrace', 'Collector', 'Plugin', 'Util', 'Dispatcher', 'Output', 'Timer' ) as $f )
 	require_once dirname( __FILE__ ) . "/{$f}.php";
diff --git a/wp-content/db.php b/wp-content/db.php
index <HASH>..<HASH> 100644
--- a/wp-content/db.php
+++ b/wp-content/db.php
@@ -25,6 +25,9 @@ GNU General Public License for more details.
 
 defined( 'ABSPATH' ) or die();
 
+if ( defined( 'QM_DISABLED' ) and QM_DISABLED )
+	return;
+
 # No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
 foreach ( array( 'Backtrace', 'Collector', 'Plugin', 'Util', 'Timer' ) as $f ) {
 	if ( ! is_readable( $file = dirname( __FILE__ ) . "/../{$f}.php" ) )
Introduce a brutal iron-fisted ruler in the form of `QM_DISABLE` which has absolute power over the kingdom of Query Monitor