comment_link()
apply_filters( ‘comment_link’, string $comment_permalin…
apply_filters( ‘comment_link’, string $comment_permalink )
过滤器::过滤当前注释的permalink。
Filter Hook: Filters the current comment’s permalink.
过滤器::过滤当前注释的permalink。
Filter Hook: Filters the current comment’s 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.0 | wp-includes/feed.php:313 | 1 | 0 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!