comment_reply_link filter-hookWP 2.7.0

Filters the comment reply link.

Usage

add_filter( 'comment_reply_link', 'wp_kama_comment_reply_link_filter', 10, 4 );

/**
 * Function for `comment_reply_link` filter-hook.
 * 
 * @param string     $comment_reply_link The HTML markup for the comment reply link.
 * @param array      $args               An array of arguments overriding the defaults.
 * @param WP_Comment $comment            The object of the comment being replied.
 * @param WP_Post    $post               The WP_Post object.
 *
 * @return string
 */
function wp_kama_comment_reply_link_filter( $comment_reply_link, $args, $comment, $post ){

	// filter...
	return $comment_reply_link;
}
$comment_reply_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

get_comment_reply_link()
comment_reply_link
wp-includes/comment-template.php 1851
return apply_filters( 'comment_reply_link', $comment_reply_link, $args, $comment, $post );

Where the hook is used in WordPress

Usage not found.