search_feed_link WordPress Filter Hook
The search_feed_link hook allows you to alter the search RSS feed link. This hook is useful for adding custom query parameters to the feed link.
apply_filters( 'search_feed_link', string $link , string $feed , string $type ) #
Filters the search feed link.
Parameters
- $link
(string)Search feed link.
- $feed
(string)Feed type. Possible values include 'rss2', 'atom'.
- $type
(string)The search type. One of 'posts' or 'comments'.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |