$comments_rewrite =
apply_filters( 'comments_rewrite_rules',
$comments_rewrite );
// Search rewrite rules.
$search_structure =
$this->
get_search_permastruct();
$search_rewrite =
$this->
generate_rewrite_rules( $search_structure, EP_SEARCH
);
/**
* 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.
*
* @since 1.5.0
*
* @param string[] $search_rewrite Array of rewrite rules for search queries, keyed by their regex pattern.
*/