Created
March 20, 2014 14:37
-
-
Save micc83/9665159 to your computer and use it in GitHub Desktop.
Wordpress return 404
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
<?php | |
function return_page_404() { | |
global $wp_query; | |
$wp_query->set_404(); | |
status_header(404); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment