
创建和定制WordPress导航菜单的深入浅出教程
comment_link ( $comment = null )
comment_link: 这个函数生成一个指向当前评论的链接。它可以用来创建一个固定链接到一个文章或页面上的特定评论。
显示评论的链接。
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 ) ) ); }