WPDev.one
Core Function
View Source on Trac ↗

get_term_feed_link()

get_term_feed_link( mixed $term, mixed $taxonomy = '', mixed $feed = '' )

Retrieves the feed link for a term.

Parameters 2 required

Name / Type Description
(int

| WP_Term | object) $term The ID or term object whose feed link will be retrieved.

Required
$taxonomy
string

Optional. Taxonomy of `$term_id`.

string

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

Required

Return Value

((string)
| false) Link to the feed for the term specified by `$term` and `$taxonomy`.

Function Information

Since Version
3.0.0
Source File
wp-includes/link-template.php
Advertisement