wpseek.com
A WordPress-centric search engine for devs and theme authors



search_rewrite_rules › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'search_rewrite_rules', $search_rewrite )
Parameters:
  • (string[]) $search_rewrite Array of rewrite rules for search queries, keyed by their regex pattern.
    Required: Yes
Defined at:
Codex:

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.





Source

$search_rewrite = apply_filters( 'search_rewrite_rules', $search_rewrite );