edit_comment_link filter-hookWP 2.3.0

Filters the comment edit link anchor tag.

Usage

add_filter( 'edit_comment_link', 'wp_kama_edit_comment_link_filter', 10, 3 );

/**
 * Function for `edit_comment_link` filter-hook.
 * 
 * @param string $link       Anchor tag for the edit link.
 * @param string $comment_id Comment ID as a numeric string.
 * @param string $text       Anchor text.
 *
 * @return string
 */
function wp_kama_edit_comment_link_filter( $link, $comment_id, $text ){

	// filter...
	return $link;
}
$link(string)
Anchor tag for the edit link.
$comment_id(string)
Comment ID as a numeric string.
$text(string)
Anchor text.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

edit_comment_link()
edit_comment_link
wp-includes/link-template.php 1652
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;

Where the hook is used in WordPress

Usage not found.