Created
July 8, 2014 18:38
-
-
Save jchristopher/3567bc86662845ee56cd to your computer and use it in GitHub Desktop.
Deactivate YO SELF
This file contains 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 ( class_exists( 'SOME_CLASS' ) ) { | |
// automatically deactivate | |
require_once ABSPATH . '/wp-admin/includes/plugin.php'; | |
deactivate_plugins( __FILE__ ); | |
wp_die( 'SRY :(' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment