Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JAW-Dev/d8e53bebb4cf2bd1b85c to your computer and use it in GitHub Desktop.
Save JAW-Dev/d8e53bebb4cf2bd1b85c to your computer and use it in GitHub Desktop.
HTML Error Log for Plugin Activation Errors
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