get_category_feed_link

SummerySummery

Retrieves the feed link for a category.

Syntax

get_category_feed_link( int $cat_id, string $feed = '' )

DescriptionDescription

Returns a link to the feed for all posts in a given category. A specific feed can be requested or left blank to get the default feed.

ParametersParameters

$cat_id

(int) (Required) Category ID.

$feed

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

Default value: ''

ReturnReturn

(string) Link to the feed for the category specified by $cat_id.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top