On this page
comment_reply_link( array $args = array(), int|WP_Comment $comment = null, int|WP_Post $post = null )
Displays the HTML content for reply to comment link.
Description
See also
Parameters
$argsarray Optional-
Override default options.
Default:
array() $commentint|WP_Comment Optional-
Comment being replied to. Default current comment.
Default:
null $postint|WP_Post Optional-
Post ID or WP_Post object the comment is going to be displayed on.
Default current post.Default:
null
Source
File: wp-includes/comment-template.php. View all references
function comment_reply_link( $args = array(), $comment = null, $post = null ) {
echo get_comment_reply_link( $args, $comment, $post );
}
Related
Uses
| Uses | Description |
|---|---|
| get_comment_reply_link() wp-includes/comment-template.php | Retrieves HTML content for reply to comment link. |
Used By
| Used By | Description |
|---|---|
| Walker_Comment::comment() wp-includes/class-walker-comment.php | Outputs a single comment. |
| Walker_Comment::html5_comment() wp-includes/class-walker-comment.php | Outputs a comment in the HTML5 format. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_reply_link