get_post_reply_link ( $args = array(), $post = null )

  • (array) args { Optional. Override default arguments. @type string $add_below The first part of the selector used to identify the comment to respond below. The resulting value is passed as the first parameter to addComment.moveForm(), concatenated as $add_below-$comment->comment_ID. Default is 'post'. @type string $respond_id The selector identifying the responding comment. Passed as the third parameter to addComment.moveForm(), and appended to the link URL as a hash value. Default 'respond'. @type string $reply_text Text of the Reply link. Default is 'Leave a Comment'. @type string $login_text Text of the link to reply if logged out. Default is 'Log in to leave a Comment'. @type string $before Text or HTML to add before the reply link. Default empty. @type string $after Text or HTML to add after the reply link. Default empty. }
  • (int|WP_Post) post Optional. Post ID or WP_Post object the comment is going to be displayed on. Default current post.
  • (string|false|null) Link to show comment form, if successful. False, if comments are closed.
Defined at:


Retrieves HTML content for reply to post link.

Related Functions

post_reply_link, next_post_rel_link, get_comment_reply_link, parent_post_rel_link, prev_post_rel_link

Top Google Results

User discussions

wpseek mobile