get_comment_date filter-hook . WP 1.5.0
Filters the returned comment date.
Usage
add_filter( 'get_comment_date', 'filter_function_name_5137', 10, 3 ); function filter_function_name_5137( $date, $format, $comment ){ // filter... return $date; }
- $date(string/int)
- Formatted date string or Unix timestamp.
- $format(string)
- PHP date format.
- $comment(WP_Comment)
- The comment object.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
get_comment_date
wp-includes/comment-template.php 568
return apply_filters( 'get_comment_date', $date, $format, $comment );