Created
October 9, 2013 01:29
-
-
Save afragen/6894726 to your computer and use it in GitHub Desktop.
"The plugin generated x characters of unexpected output during activation" error during WP plugin activation. Add the code to your plugin to see where the error is.
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 | |
add_action('activated_plugin','save_error'); | |
function save_error(){ | |
update_option('plugin_error', ob_get_contents()); | |
} | |
echo get_option('plugin_error'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment