Summery Summery

Displays the permalink for the feed type.

Syntax Syntax

the_feed_link( string $anchor, string $feed = '' )

Parameters Parameters


(string) (Required) The link's anchor text.


(string) (Optional) Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Default value: ''

Source Source

File: wp-includes/link-template.php

	$link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';

	 * Filters the feed link anchor tag.
	 * @since 3.0.0
	 * @param string $link The complete anchor tag for a feed link.
	 * @param string $feed The feed type. Possible values include 'rss2', 'atom',
	 *                     or an empty string for the default feed type.
	echo apply_filters( 'the_feed_link', $link, $feed );


Changelog Changelog

Version Description
3.0.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.