Filter hook 'comment_class'

in WP Core File wp-includes/comment-template.php at line 593

Description

Filters the returned CSS classes for the current comment.

Occurrences

Filename Line Number
wp-includes/comment-template.php 593

Parameters

Type Name Description
string[] $classes An array of comment classes.
string[] $css_class An array of additional classes added to the list.
string $comment_id The comment ID as a numeric string.
WP_Comment $comment The comment object.
int|WP_Post $post The post ID or WP_Post object.

PHP Doc

/**
	 * Filters the returned CSS classes for the current comment.
	 *
	 * @since 2.7.0
	 *
	 * @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.
	 */