apply_filters( 'search_rewrite_rules', string[] $search_rewrite )

Filters rewrite rules used for search archives.


Description

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


Top ↑

Parameters

$search_rewrite string[]
Array of rewrite rules for search queries, keyed by their regex pattern.

Top ↑

Source

File: wp-includes/class-wp-rewrite.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.