Skip to content

Instantly share code, notes, and snippets.

@Tmeister
Forked from JPry/Disable Plugins.md
Created December 18, 2013 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tmeister/8027495 to your computer and use it in GitHub Desktop.
Save Tmeister/8027495 to your computer and use it in GitHub Desktop.
<?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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment