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.


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

	return $search_rewrite;
The rewrite rules for search queries.

Where the hook is called

wp-includes/class-wp-rewrite.php 1351
$search_rewrite = apply_filters( 'search_rewrite_rules', $search_rewrite );

Where the hook is used (in WP core)

Использование не найдено.