apply_filters( 'get_comments_link', string $comments_link, int|WP_Post $post_id )

Filters the returned post comments permalink.


Parameters

$comments_link

(string) Post comments permalink with '#comments' appended.

$post_id

(int|WP_Post) Post ID or WP_Post object.


Source

File: wp-includes/comment-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.6.0 Introduced.