WordPress开发者和主题制作者的搜索引擎



get_category_rss_link ›

Since1.2.0
已弃用2.5.0
get_category_rss_link ( $echo = false, $cat_ID = 1 )
参数: (2)
  • (bool) $echo
    Required: No
    默认: false
  • (int) $cat_ID
    Required: No
    默认: 1
查看:
返回:
  • (string)
定义在:
文档:

Print/Return link to category RSS2 feed.



源码

function get_category_rss_link($echo = false, $cat_ID = 1) {
	_deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' );

	$link = get_category_feed_link($cat_ID, 'rss2');

	if ( $echo )
		echo $link;
	return $link;
}