Filters the returned CSS classes for the current comment.
$classesstring[]$css_classstring[]$comment_idstring$commentWP_Comment$postint|WP_Postwp-includes/comment-template.php:599get_comment_class() * @param string[] $classes An array of comment classes. * @param string[] $css_class An array of additional classes added to the list. * @param string $comment_id The comment ID as a numeric string. * @param WP_Comment $comment The comment object. * @param int|WP_Post $post The post ID or WP_Post object. */ return apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post );} /** * Retrieves the comment date of the current comment. * * @since 1.5.0Introduced in 2.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.