Created
July 1, 2024 10:28
-
-
Save bgrgicak/326aa07eb7bb58edc1c972f566c867a3 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* 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('init', 'fail_plugin_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment