comment_link filter-hookWP 3.6.0

Filters the current comment's permalink.

Usage

add_filter( 'comment_link', 'wp_kama_comment_link_filter' );

/**
 * Function for `comment_link` filter-hook.
 * 
 * @param string $comment_permalink The current comment permalink.
 *
 * @return string
 */
function wp_kama_comment_link_filter( $comment_permalink ){

	// filter...
	return $comment_permalink;
}
$comment_permalink(string)
The current comment permalink.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

comment_link()
comment_link
wp-includes/feed.php 319
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );

Where the hook is used in WordPress

Usage not found.