comment_reply_link_args

Filters the comment reply link arguments.

Description

apply_filters( 'comment_reply_link_args', (array) $args, (WP_Comment) $comment, (WP_Post) $post ); 

Parameters (3)

0. $args (array)
Comment reply link arguments. See get_comment_reply_link() for more information on accepted arguments.
1. $comment (WP_Comment)
The object of the comment being replied to.
2. $post (WP_Post)
The WP_Post object.

Usage

To run the hook, copy the example below.
  1. $args = apply_filters( 'comment_reply_link_args', $args, $comment, $post ); 
  2.  
  3. if ( !empty( $args ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the comment_reply_link_args callback 
  2. function filter_comment_reply_link_args( $args, $comment, $post ) { 
  3. // make filter magic happen here... 
  4. return $args
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'comment_reply_link_args', 'filter_comment_reply_link_args', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'comment_reply_link_args', 'filter_comment_reply_link_args', 10, 3 ); 

Defined (1)

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

/wp-includes/comment-template.php  
  1. $args = apply_filters( 'comment_reply_link_args', $args, $comment, $post );