On this page
apply_filters( 'get_comment_time', string|int $date, string $format, bool $gmt, bool $translate, WP_Comment $comment )
Filters the returned comment time.
Parameters
$datestring|int-
The comment time, formatted as a date string or Unix timestamp.
$formatstring-
PHP date format.
$gmtbool-
Whether the GMT date is in use.
$translatebool-
Whether the time is translated.
$commentWP_Comment-
The comment object.
Source
File: wp-includes/comment-template.php. View all references
return apply_filters( 'get_comment_time', $date, $format, $gmt, $translate, $comment );
Related
Used By
| Used By | Description |
|---|---|
| get_comment_time() wp-includes/comment-template.php | Retrieves the comment time of the current comment. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comment_time