comment_reply_link

Filters the comment reply link.

Description

apply_filters( 'comment_reply_link', (unknown) $before_link_after, (unknown) $args, (unknown) $comment, (unknown) $post ); 

Parameters (4)

0. $before_link_after (unknown)
The before link after.
1. $args (unknown)
The args.
2. $comment (unknown)
The comment.
3. $post (unknown)
The post.

Usage

To run the hook, copy the example below.
  1. $before_link_after = apply_filters( 'comment_reply_link', $before_link_after, $args, $comment, $post ); 
  2.  
  3. if ( !empty( $before_link_after ) ) { 
  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 callback 
  2. function filter_comment_reply_link( $before_link_after, $args, $comment, $post ) { 
  3. // make filter magic happen here... 
  4. return $before_link_after
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'comment_reply_link', 'filter_comment_reply_link', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'comment_reply_link', 'filter_comment_reply_link', 10, 4 ); 

Defined (1)

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

/themes/p2/functions.php  
  1. return apply_filters( 'comment_reply_link', $before . $link . $after, $args, $comment, $post);