Created
March 27, 2019 15:18
-
-
Save mikehins/c7f972ac3d8046f7e32bc1cc42de519b to your computer and use it in GitHub Desktop.
Remove 404 from wordpress for debug purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'template_redirect', 'maybe_redirect_404' ); | |
add_filter( 'pre_handle_404', function() { | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment