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

Retrieves the feed link for a category.


Description

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.


Parameters

$cat_id

(int) (Required) Category ID.

$feed

(string) (Optional) Feed type.

Default value: ''


Return

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


Source

File: wp-includes/link-template.php

function get_category_feed_link( $cat_id, $feed = '' ) {
	return get_term_feed_link( $cat_id, 'category', $feed );
}


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.