Skip to content

Instantly share code, notes, and snippets.

Marlon Lacerda Amancio marlonlamancio

Block or report user

Report or block marlonlamancio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marlonlamancio
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 ) {
You can’t perform that action at this time.