comment_link

过滤器::过滤当前注释的permalink。

apply_filters( ‘comment_link’, string $comment_permalink )

说明(Description)

另见函数 get_comment_link()


参数(Parameters)

参数类型说明
$comment_permalink(string)当前评论永久链接。

源码(Source)

/**
 * Display the link to the comments.
 *
 * @since 1.5.0
 */
function comment_link() {
	/**
	 * Filter 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() ) );
}
更新版本源码位置使用被使用
3.6.0wp-includes/feed.php:31310
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索