get_category_feed_link()
最后更新于:2021-11-26 07:13:20
get_category_feed_link( int$cat_id, string$feed=”)Retrieves the feed link for a category.
参数
- $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: ”
响应
(string) Link to the feed for the category specified by $cat_id.
源文件
文件: gc-includes/link-template.php
function get_category_feed_link( $cat_id, $feed = '' ) {
return get_term_feed_link( $cat_id, 'category', $feed );
}