post_comments_link WordPress Filter Hook
The post_comments_link WordPress hook is a great way to easily add a link to the comments section of your blog posts. This hook allows you to specify the text that should be used for the link, as well as the CSS class that should be applied to it.
apply_filters( 'post_comments_link', string $formatted , int|WP_Post $post ) #
Filters the formatted post comments link HTML.
Parameters
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |