On this page
apply_filters( 'get_comment_link', string $link, WP_Comment $comment, array $args, int $cpage )
Filters the returned single comment permalink.
Description
See also
Parameters
$linkstring-
The comment permalink with
'#comment-$id'appended. $commentWP_Comment-
The current comment object.
$argsarray-
An array of arguments to override the defaults.
$cpageint-
The calculated
'cpage'value.
Source
File: wp-includes/comment-template.php. View all references
return apply_filters( 'get_comment_link', $link, $comment, $args, $cpage );
Related
Used By
| Used By | Description |
|---|---|
| get_comment_link() wp-includes/comment-template.php | Retrieves the link to a given comment. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comment_link