Core Function
View Source on Trac ↗ get_comments_link()
get_comments_link( mixed $post = 0 ) Retrieves the link to the current post comments.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post. Required |
Return Value
(string)
The link to the comments.
Function Information
Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement