W3cubDocs

/WordPress

apply_filters( 'post_comments_link', string $formatted, int|WP_Post $post )

Filters the formatted post comments link HTML.

Parameters

$formatted

(string) The HTML-formatted post comments link.

$post

(int|WP_Post) The post ID or WP_Post object.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
2.7.0 Introduced.

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