WordPress at a glance
filter is not described

search_rewrite_rules filter-hook . WP 1.5.0

Filters rewrite rules used for search archives.

Likely search-related archives include /search/search+query/ as well as pagination and feed paths for a search.

Usage

add_filter( 'search_rewrite_rules', 'filter_function_name_9309' );
function filter_function_name_9309( $search_rewrite ){
	// filter...

	return $search_rewrite;
}
$search_rewrite(string[])
Array of rewrite rules for search queries, keyed by their regex pattern.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

WP_Rewrite::rewrite_rules()
search_rewrite_rules
wp-includes/class-wp-rewrite.php 1355
$search_rewrite = apply_filters( 'search_rewrite_rules', $search_rewrite );

Where in WP core the hook is used WordPress

Usage not found.