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

---

# apply_filters( ‘the_feed_link’, string $link, string $feed )

## In this article

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

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

Filters the feed link anchor tag.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/the_feed_link/?output_format=md#parameters)󠁿

 `$link`string

The complete anchor tag for a feed link.

`$feed`string

The feed type. Possible values include `'rss2'`, `'atom'`, or an empty string for
the default feed type.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/the_feed_link/?output_format=md#source)󠁿

    ```php
    echo apply_filters( 'the_feed_link', $link, $feed );
    ```

[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#L679)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/link-template.php#L679-L679)

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

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

Displays the permalink for the feed type.

  |

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

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

## User Contributed Notes

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