Core Function
View Source on Trac ↗ get_comment_reply_link()
get_comment_reply_link( mixed $args = array(), mixed $comment = null, mixed $post = null ) Retrieves HTML content for reply to comment link.
Parameters 3 required
| Name / Type | Description |
|---|---|
| array | $args { Optional. Override default arguments. Required |
| (int | | WP_Comment) $comment Optional. Comment being replied to. Default current comment. Required |
| mixed | (int | WP_Post) $post Optional. Post ID or WP_Post object the comment is going to be displayed on. Default current post. Required |
Return Value
((string)
| false | null) Link to show comment form, if successful. False, if comments are closed.
Function Information
Since Version
2.7.0
Source File
wp-includes/comment-template.php
Advertisement