get_tag_feed_link

Advertisement

Summery Summery

Retrieves the permalink for a tag feed.

Syntax Syntax

get_tag_feed_link( int $tag_id, string $feed = '' )

Parameters Parameters

$tag_id

(Required) Tag ID.

$feed

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

Default value: ''

Return Return

(string) The feed permalink for the given tag.

Source Source

File: wp-includes/link-template.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply