A WordPress-centric search engine for devs and theme authors



search_rewrite_rules ›

Since1.5.0
Deprecatedn/a
apply_filters( 'search_rewrite_rules', $search_rewrite )
Parameters:
  • (array) $search_rewrite The rewrite rules for search queries.
    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 );