Created
February 22, 2014 06:24
-
-
Save cornernote/9149535 to your computer and use it in GitHub Desktop.
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
add_filter('template_redirect', 'my_404_override'); | |
add_filter('the_content', 'my_content_override'); | |
function my_404_override() | |
{ | |
global $wp_query; | |
if (true) { | |
status_header(200); | |
$wp_query->is_404 = false; | |
} | |
} | |
function my_content_override() | |
{ | |
echo '<div>hello world</div>'; | |
print_r($_GET); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment