apply_filters( 'get_comment_link', string $comment_link , WP_Comment $comment , array $args , int $cpage )
Filters the returned single comment permalink.
Description
See also
Parameters
-
$comment_link
string -
The comment permalink with
'#comment-$id'
appended. -
$comment
WP_Comment -
The current comment object.
-
$args
array -
An array of arguments to override the defaults.
-
$cpage
int -
The calculated
'cpage'
value.
Source
File: wp-includes/comment-template.php
.
View all references
return apply_filters( 'get_comment_link', $comment_link, $comment, $args, $cpage );
Changelog
Version | Description |
---|---|
4.4.0 | Added the $cpage parameter. |
2.8.0 | Introduced. |