Skip to content

Instantly share code, notes, and snippets.

@jkudish
Created August 18, 2010 00:59
Show Gist options
  • Save jkudish/532889 to your computer and use it in GitHub Desktop.
Save jkudish/532889 to your computer and use it in GitHub Desktop.
if ( isset($_GET['debug']) && $_GET['debug'] == 'debug')
define('WP_DEBUG', true);
/* Code goes into config.php
add ?debug=debug to a URL and see what's causing the trouble
change the second 'debug' to a diff key => anonymous/secure.
add_action('all', create_function('', 'var_dump(current_filter());'));
//show all hooks and filters in source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment