apply_filters( ‘get_comments_link’, string $comments_link, int|WP_Post $post )

In this article

Filters the returned post comments permalink.

Parameters

$comments_linkstring
Post comments permalink with '#comments' appended.
$postint|WP_Post
Post ID or WP_Post object.

Source

return apply_filters( 'get_comments_link', $comments_link, $post );

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.