WordPress at Your Fingertips
filter is not described

get_comments_link filter-hook . WP 3.6.0

Filters the returned post comments permalink.

Usage

add_filter( 'get_comments_link', 'filter_function_name_3773', 10, 2 );
function filter_function_name_3773( $comments_link, $post_id ){
	// filter...

	return $comments_link;
}
$comments_link(string)
Post comments permalink with '#comments' appended.
$post_id(int|WP_Post)
Post ID or WP_Post object.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

get_comments_link()
get_comments_link
wp-includes/comment-template.php 824
return apply_filters( 'get_comments_link', $comments_link, $post_id );

Where in WP core the hook is used WordPress

Usage not found.