函数原型
comments_link_feed()
函数描述
Outputs the link to the comments for the current post in an XML safe way.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-includes/feed.php.
函数源码
function comments_link_feed() {
/**
* Filters the comments permalink for the current post.
*
* @since 3.6.0
*
* @param string $comment_permalink The current comment permalink with
* '#comments' appended.
*/
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

