comment_reply_link
云策文档标注
概述
comment_reply_link 是一个 WordPress 过滤器钩子,用于修改评论回复链接的 HTML 标记。它允许开发者自定义回复链接的显示内容和样式。
关键要点
- 过滤器名称:comment_reply_link
- 参数:$comment_reply_link(HTML 标记字符串)、$args(参数数组)、$comment(WP_Comment 对象)、$post(WP_Post 对象)
- 相关函数:get_comment_reply_link() 用于获取回复链接的 HTML 内容
- 引入版本:WordPress 2.7.0
原文内容
Filters the comment reply link.
Parameters
$comment_reply_linkstring-
The HTML markup for the comment reply link.
$argsarray-
An array of arguments overriding the defaults.
$commentWP_Comment-
The object of the comment being replied.
$postWP_Post-
The WP_Post object.
Source
return apply_filters( 'comment_reply_link', $comment_reply_link, $args, $comment, $post );
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |