get_comment_date хук-фильтр . WP 1.5.0
Filters the returned comment date.
Использование
add_filter( 'get_comment_date', 'filter_function_name_1719', 10, 3 ); function filter_function_name_1719( $date, $format, $comment ){ // filter... return $date; }
- $date(строка/число)
- Formatted date string or Unix timestamp.
- $format(строка)
- PHP date format.
- $comment(WP_Comment)
- The comment object.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
get_comment_date
wp-includes/comment-template.php 568
return apply_filters( 'get_comment_date', $date, $format, $comment );