get_tag_feed_link( int|WP_Term|object $tag, string $feed =  ): string

In this article

Retrieves the permalink for a tag feed.

Parameters

$tagint|WP_Term|objectrequired
The ID or term object whose feed link will be retrieved.
$feedstringoptional
Feed type. Possible values include 'rss2', 'atom'.
Default is the value of get_default_feed() .

Default:''

Return

string The feed permalink for the given tag.

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.