dejanmarkovic
1/2/2014 - 1:38 AM

disable-plugins.php

<?php
/**
 * Plugin Name: Disable all plugins
 * Plugin URI: https://gist.github.com/JCPry/8026015
 * Description: Short-circuits the function in WordPress that determines which plugins are activated, and tells WordPress that no plugins are activated
 * Version: 1.0
 * Author: Jeremy Pry
 * Author URI: http://jeremypry.com/
 */

add_filter( 'pre_option_active_plugins', '__return_empty_array' );
add_filter( 'pre_site_option_active_sitewide_plugins', '__return_empty_array' );