Uses
Uses | Description |
---|---|
wp-includes/link-template.php: get_term_feed_link() | Retrieves the feed link for a term. |
Retrieves the feed link for a category.
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.
(int) (Required) Category ID.
(string) (Optional) Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().
Default value: ''
(string) Link to the feed for the category specified by $cat_id.
File: wp-includes/link-template.php
function get_category_feed_link( $cat_id, $feed = '' ) { return get_term_feed_link( $cat_id, 'category', $feed ); }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_category_feed_link