W3cubDocs

/WordPress

apply_filters( ‘get_comment_date’, string|int $comment_date, string $format, WP_Comment $comment )

Filters the returned comment date.

Parameters

$comment_datestring|int
Formatted date string or Unix timestamp.
$formatstring
PHP date format.
$commentWP_Comment
The comment object.

Source

return apply_filters( 'get_comment_date', $comment_date, $format, $comment );

Changelog

Version Description
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comment_date