W3cubDocs

/WordPress

apply_filters( ‘post_comments_link’, string $post_reply_link, int|WP_Post $post )

Filters the formatted post comments link HTML.

Parameters

$post_reply_linkstring
The HTML-formatted post comments link.
$postint|WP_Post
The post ID or WP_Post object.

Source

return apply_filters( 'post_comments_link', $post_reply_link, $post );

Changelog

Version Description
2.7.0 Introduced.

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