Title: search_feed_link
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘search_feed_link’, string $link, string $feed, string $type )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#wp--skip-link--target)

Filters the search feed link.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#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](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'search_feed_link', $link, $feed, 'posts' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/link-template.php#L1253)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/link-template.php#L1253-L1253)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#related)󠁿

| Used by | Description | 
| [get_search_comments_feed_link()](https://developer.wordpress.org/reference/functions/get_search_comments_feed_link/)`wp-includes/link-template.php` |

Retrieves the permalink for the search results comments feed.

  | 
| [get_search_feed_link()](https://developer.wordpress.org/reference/functions/get_search_feed_link/)`wp-includes/link-template.php` |

Retrieves the permalink for the search results feed.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/search_feed_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsearch_feed_link%2F)
before being able to contribute a note or feedback.