WordPress at a glance
filter is not described

get_comment_link filter-hook . WP 2.8.0

Filters the returned single comment permalink.


add_filter( 'get_comment_link', 'filter_function_name_7181', 10, 4 );
function filter_function_name_7181( $link, $comment, $args, $cpage ){
	// filter...

	return $link;
The comment permalink with '#comment-$id' appended.
The current comment object.
An array of arguments to override the defaults.
The calculated 'cpage' value.


  • Since 4.4.0 Added the $cpage parameter.

Where the hook is called

wp-includes/comment-template.php 790
return apply_filters( 'get_comment_link', $link, $comment, $args, $cpage );

Where the hook is used (in WP core)

Does not used.