get_tag_feed_link()WP 2.3.0

Retrieves the permalink for a tag feed.

No Hooks.

Return

String. The feed permalink for the given tag.

Usage

get_tag_feed_link( $tag, $feed );
$tag(int|WP_Term|object) (required)
The ID or term object whose feed link will be retrieved.
$feed(string)
Feed type. Possible values include 'rss2', 'atom'.
Default: value of get_default_feed()

Changelog

Since 2.3.0 Introduced.

Code of get_tag_feed_link() WP 6.0

function get_tag_feed_link( $tag, $feed = '' ) {
	return get_term_feed_link( $tag, 'post_tag', $feed );
}