Created
November 4, 2024 14:34
-
-
Save bgrgicak/82dcc88f1dba97742482f68c2ebe089d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Plugin Name: Fail | |
* Description: Throw an exception on init | |
* Version: 1.0 | |
* Author: bgrgicak | |
* Author URI: https://bero.dev | |
*/ | |
function fail_plugin_init() { | |
throw new Exception('This plugin is a failure'); | |
} | |
add_action('admin_init', 'fail_plugin_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment