WordPress at a glance
filter is not described

comment_class filter-hook . WP 2.7.0

Filters the returned CSS classes for the current comment.


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

	return $classes;
An array of comment classes.
An array of additional classes added to the list.
The comment ID.
The comment object.
The post ID or WP_Post object.


Since 2.7.0 Introduced.

Where the hook is called

wp-includes/comment-template.php 538
return apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id );

Where in WP core the hook is used WordPress

Usage not found.