WordPress at Your Fingertips
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_1187', 10, 5 );
function filter_function_name_1187( $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.

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.