W3cubDocs

/WordPress

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 Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comments_link