cancel_comment_reply_link filter-hookWP 2.7.0

Filters the cancel comment reply link HTML.

Usage

add_filter( 'cancel_comment_reply_link', 'wp_kama_cancel_comment_reply_link_filter', 10, 3 );

/**
 * Function for `cancel_comment_reply_link` filter-hook.
 * 
 * @param string $formatted_link The HTML-formatted cancel comment reply link.
 * @param string $link           Cancel comment reply link URL.
 * @param string $text           Cancel comment reply link text.
 *
 * @return string
 */
function wp_kama_cancel_comment_reply_link_filter( $formatted_link, $link, $text ){

	// filter...
	return $formatted_link;
}
$formatted_link(string)
The HTML-formatted cancel comment reply link.
$link(string)
Cancel comment reply link URL.
$text(string)
Cancel comment reply link text.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

get_cancel_comment_reply_link()
cancel_comment_reply_link
wp-includes/comment-template.php 1917
return apply_filters( 'cancel_comment_reply_link', $formatted_link, $link, $text );

Where the hook is used in WordPress

Usage not found.