get_tag_feed_link( int $tag_id, string $feed = '' )
Retrieves the permalink for a tag feed.
Description Description
Parameters Parameters
- $tag_id
-
(int) (Required) Tag ID.
- $feed
-
(string) (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 ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |