WPDev.one
Core Function
View Source on Trac ↗

get_category_feed_link()

get_category_feed_link( mixed $cat, mixed $feed = '' )

Retrieves the feed link for a category.

Parameters 2 required

Name / Type Description
(int

| WP_Term | object) $cat The ID or category 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)
Link to the feed for the category specified by `$cat`.

Function Information

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