the_feed_link

The timeline below displays how wordpress function the_feed_link has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Displays the permalink for the feed type.
 *
 * @since 3.0.0
 *
 * @param string $anchor The link's anchor text.
 * @param string $feed   Optional. Feed type. Possible values include 'rss2', 'atom'.
 *                       Default is the value of get_default_feed().
 */
function the_feed_link($anchor, $feed = '')
{
    $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);
}

WordPress Version: 4.6

/**
 * Displays the permalink for the feed type.
 *
 * @since 3.0.0
 *
 * @param string $anchor The link's anchor text.
 * @param string $feed   Optional. Feed type. Default empty.
 */
function the_feed_link($anchor, $feed = '')
{
    $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, or an empty string for the
     *                     default feed type.
     */
    echo apply_filters('the_feed_link', $link, $feed);
}

WordPress Version: 4.3

/**
 * Display the permalink for the feed type.
 *
 * @since 3.0.0
 *
 * @param string $anchor The link's anchor text.
 * @param string $feed   Optional, defaults to default feed. Feed type.
 */
function the_feed_link($anchor, $feed = '')
{
    $link = '<a href="' . esc_url(get_feed_link($feed)) . '">' . $anchor . '</a>';
    /**
     * Filter 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, or an empty string for the
     *                     default feed type.
     */
    echo apply_filters('the_feed_link', $link, $feed);
}

WordPress Version: 3.9

/**
 * Display the permalink for the feed type.
 *
 * @since 3.0.0
 *
 * @param string $anchor The link's anchor text.
 * @param string $feed Optional, defaults to default feed. Feed type.
 */
function the_feed_link($anchor, $feed = '')
{
    $link = '<a href="' . esc_url(get_feed_link($feed)) . '">' . $anchor . '</a>';
    /**
     * Filter 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, or an empty string for the
     *                     default feed type.
     */
    echo apply_filters('the_feed_link', $link, $feed);
}

WordPress Version: 3.7

/**
 * Display the permalink for the feed type.
 *
 * @since 3.0.0
 *
 * @param string $anchor The link's anchor text.
 * @param string $feed Optional, defaults to default feed. Feed type.
 */
function the_feed_link($anchor, $feed = '')
{
    $link = '<a href="' . esc_url(get_feed_link($feed)) . '">' . $anchor . '</a>';
    echo apply_filters('the_feed_link', $link, $feed);
}