Created
February 24, 2015 07:16
-
-
Save gaintsev/0a0eaaaa3ebe418b313e to your computer and use it in GitHub Desktop.
Wordpress detect activation plugin error
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
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