Core Function
View Source on Trac ↗ get_tag_feed_link()
get_tag_feed_link( mixed $tag, mixed $feed = '' ) Retrieves the permalink for a tag feed.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | WP_Term | object) $tag The ID or term object whose feed link will be retrieved. Required |
| string | $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed(). Required |
Return Value
(string)
The feed permalink for the given tag.
Function Information
Since Version
2.3.0
Source File
wp-includes/link-template.php
Advertisement