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' );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment