Skip to content

Instantly share code, notes, and snippets.


Marlon Amâncio marlonlamancio

View GitHub Profile
marlonlamancio / gist:3166226
Created Jul 23, 2012
Debug WordPress 404 issues (permalinks, rewrite rules, etc.)
View gist:3166226
/* Produces a dump on the state of WordPress when a not found error occurs */
/* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */
ini_set( 'error_reporting', -1 );
ini_set( 'display_errors', 'On' );
echo '<pre>';
add_action( 'parse_request', 'debug_404_rewrite_dump' );
function debug_404_rewrite_dump( &$wp ) {