comment_reply_link

Displays the HTML content for reply to comment link.

Description

comment_reply_link( (array) $args = array(), (constant) $comment = null, (constant) $post = null ); 

Parameters (3)

0. $args — Optional. (array) => array()
Override default options.
1. $comment — Optional. (constant) => null
Comment being replied to. Default current comment.
2. $post — Optional. (constant) => null
Post ID or WP_Post object the comment is going to be displayed on. Default current post.

Usage

  1. if ( !function_exists( 'comment_reply_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Optional. Override default options. 
  5. $args = array(); 
  6.  
  7. // Comment being replied to. Default current comment. 
  8. $comment = null; 
  9.  
  10. // Post ID or WP_Post object the comment is going to be displayed on. 
  11. // Default current post. 
  12. $post = null; 
  13.  
  14. // NOTICE! Understand what this does before running. 
  15. $result = comment_reply_link($args, $comment, $post); 
  16.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function comment_reply_link($args = array(), $comment = null, $post = null) { 
  2. echo get_comment_reply_link($args, $comment, $post);