AnsPress_Common_Pages::set_404()
Description #
If page is not found then set header as 404
Source #
File: includes/common-pages.php
public static function set_404() {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
include ap_get_theme_location( 'not-found.php' );
}
Expand full source code Collapse full source code View on GitHub: includes/common-pages.php:223
Add your comment