Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('wp', 'check_search');
- function check_search() {
- global $wp_query;
- if (!$s = get_search_query())
- return false;
- if (!is_numeric($s)) {
- $wp_query->set_404();
- status_header(404);
- get_template_part(404);
- exit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement