comment_link()
最后更新于:2021-11-25 21:26:25
comment_link( int|GC_Comment$comment=null)Display the link to the comments.
参数
- $comment
-
(int|GC_Comment) (Optional) Comment object or ID. Defaults to global comment object.
Default value: null
源文件
文件: gc-includes/feed.php
function comment_link( $comment = null ) {
/**
* Filters the current comment's permalink.
*
* @since 3.6.0
*
* @see get_comment_link()
*
* @param string $comment_permalink The current comment permalink.
*/
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );
}