WordPress как на ладони
wordpress jino
фильтр не описан

comment_class хук-фильтр . WP 2.7.0

Filters the returned CSS classes for the current comment.

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

add_filter( 'comment_class', 'filter_function_name_8464', 10, 5 );
function filter_function_name_8464( $classes, $class, $comment_id, $comment, $post_id ){
	// filter...

	return $classes;
}
$classes(array)
An array of comment classes.
$class(string)
A comma-separated list of additional classes added to the list.
$comment_id(int)
The comment id.
$comment(WP_Comment)
The comment object.
$post_id(int|WP_Post)
The post ID or WP_Post object.

Связи хука

Используется в: get_comment_class()

Кусок кода с хуком

Фрагмент из: wp-includes/comment-template.php WP 4.9
...
	}

	$classes = array_map('esc_attr', $classes);

	/**
	 * Filters the returned CSS classes for the current comment.
	 *
	 * @since 2.7.0
	 *
	 * @param array       $classes    An array of comment classes.
	 * @param string      $class      A comma-separated list of additional classes added to the list.
	 * @param int         $comment_id The comment id.
	 * @param WP_Comment  $comment    The comment object.
	 * @param int|WP_Post $post_id    The post ID or WP_Post object.
	 */
	return apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id );
}

/**
 * Retrieve the comment date of the current comment.
 *
 * @since 1.5.0
 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
 *
 * @param string          $d          Optional. The format of the date. Default user's setting.
 * @param int|WP_Comment  $comment_ID WP_Comment or ID of the comment for which to get the date.
 *                                    Default current comment.
 * @return string The comment's date.
 */
function get_comment_date( $d = '', $comment_ID = 0 ) {
	$comment = get_comment( $comment_ID );
...