函数原型
get_category_rss_link( bool $display = false, int $cat_ID = 1 ): string
函数描述
Print/Return link to category RSS2 feed.
是否弃用
Warning: This function has been deprecated. Use get_category_feed_link() instead.
函数参数
-
$display
bool
Optional Default:
false-
$cat_ID
int
Optional Default:
1
函数返回值
string
函数位置
File: wp-includes/deprecated.php.
函数源码
function get_category_rss_link($display = false, $cat_ID = 1) {
_deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' );
$link = get_category_feed_link($cat_ID, 'rss2');
if ( $display )
echo $link;
return $link;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Use get_category_feed_link() |
| 1.2.0 | Introduced. |

