get_comment_date хук-фильтрWP 1.5.0

Filters the returned comment date.

Использование

add_filter( 'get_comment_date', 'wp_kama_get_comment_date_filter', 10, 3 );

/**
 * Function for `get_comment_date` filter-hook.
 * 
 * @param string|int $comment_date Formatted date string or Unix timestamp.
 * @param string     $format       PHP date format.
 * @param WP_Comment $comment      The comment object.
 *
 * @return string|int
 */
function wp_kama_get_comment_date_filter( $comment_date, $format, $comment ){

	// filter...
	return $comment_date;
}
$comment_date(строка|int)
Formatted date string or Unix timestamp.
$format(строка)
PHP date format.
$comment(WP_Comment)
The comment object.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

get_comment_date()
get_comment_date
wp-includes/comment-template.php 617
return apply_filters( 'get_comment_date', $comment_date, $format, $comment );

Где используется хук в WordPress

Использование не найдено.