Created
May 31, 2014 21:52
-
-
Save JAW-Dev/d8e53bebb4cf2bd1b85c to your computer and use it in GitHub Desktop.
HTML Error Log for Plugin Activation Errors
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(){ | |
file_put_contents(ABSPATH. 'wp-content/error_activation.html', ob_get_contents()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment