apply_filters( 'get_comment_date', string|int $comment_date , string $format , WP_Comment $comment )
Filters the returned comment date.
Parameters
-
$comment_date
string|int -
Formatted date string or Unix timestamp.
-
$format
string -
PHP date format.
-
$comment
WP_Comment -
The comment object.
Source
File: wp-includes/comment-template.php
.
View all references
return apply_filters( 'get_comment_date', $comment_date, $format, $comment );
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
An example of filtering the comment date format:
Use the standard PHP date format characters: http://php.net/manual/en/function.date.php