wordpress / latest / hooks / post_comments_link.html

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 all references

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

Used By

Used By Description

Changelog

Version Description
2.7.0 Introduced.

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