Created
August 26, 2015 16:52
-
-
Save junrillg/a8dc18fefe335edc8902 to your computer and use it in GitHub Desktop.
WP:Set 404 in WordPress
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
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