comment_reply_link filter-hook . WP 2.7.0
Filters the comment reply link.
Usage
add_filter( 'comment_reply_link', 'filter_function_name_3346', 10, 4 ); function filter_function_name_3346( $link, $args, $comment, $post ){ // filter... return $link; }
- $link(string)
- The HTML markup for the comment reply link.
- $args(array)
- An array of arguments overriding the defaults.
- $comment(WP_Comment)
- The object of the comment being replied.
- $post(WP_Post)
- The WP_Post object.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
comment_reply_link
wp-includes/comment-template.php 1772
return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );