AnsPress_Common_Pages::search_page()

Description #

Load search page template

Changelog #

VersionDescription
unknownunknown
4.2.0Introduced.

Source #

File: includes/common-pages.php

	public static function search_page() {
		$keywords = ap_sanitize_unslash( 'ap_s', 'query_var', false );
		wp_safe_redirect( add_query_arg( array( 'ap_s' => $keywords ), ap_get_link_to( '/' ) ) );
		exit;
	}

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