Skip to content

Instantly share code, notes, and snippets.

@stephenharris
Created April 3, 2013 18:01
Show Gist options
  • Save stephenharris/5303608 to your computer and use it in GitHub Desktop.
Save stephenharris/5303608 to your computer and use it in GitHub Desktop.
Who killed WordPress? Useful for when you're get rogue 'Are you sure messages?' Not for production folks...
<?php
function who_killed_me( $handler ){
print_r( wp_debug_backtrace_summary() );
return $handler;
}
add_filter( 'wp_die_handler', 'who_killed_me' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment