Core Function
View Source on Trac ↗ get_comment_link()
get_comment_link( mixed $comment = null, mixed $args = array() ) Retrieves the link to a given comment.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (WP_Comment | | int | null) $comment Optional. Comment to retrieve. Default current comment. Required |
| array | $args { An array of optional arguments to override the defaults. Required |
Return Value
(string)
The permalink to the given comment.
Function Information
Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement