Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Plugin Name: Deactivate WordPress
* Author: David Remer
* Description: Do use with care. Actually: Do not use!
**/
function deactivate_wordpress() {
remove_action( 'all', 'deactivate_wordpress' );
wp_die( 'WordPress wurde deaktiviert.' );
}
add_action( 'all', 'deactivate_wordpress' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.