the_feed_link( string $anchor, string $feed = '' )
Displays the permalink for the feed type.
Parameters
- $anchor
-
(Required) The link's anchor text.
- $feed
-
(Optional) Feed type. Possible values include 'rss2', 'atom'.<br> Default is the value of get_default_feed().
Default value: ''
Source
File: wp-includes/link-template.php
function the_feed_link( $anchor, $feed = '' ) {
$link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';
/**
* Filters the feed link anchor tag.
*
* @since WP-3.0.0
*
* @param string $link The complete anchor tag for a feed link.
* @param string $feed The feed type, or an empty string for the
* default feed type.
*/
echo apply_filters( 'the_feed_link', $link, $feed );
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |