W3cubDocs

/WordPress

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

Retrieves the permalink for a tag feed.

Description

Parameters

$tag_id

(int) (Required) Tag ID.

$feed

(string) (Optional) Feed type.

Default value: ''

Return

(string) The feed permalink for the given tag.

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 );
}

Changelog

Version Description
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_tag_feed_link