apply_filters( 'comment_class', string[] $classes, string[] $css_class, string $comment_id, WP_Comment $comment, int|WP_Post $post )

Filters the returned CSS classes for the current comment.


Parameters

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

Top ↑

Source

File: wp-includes/comment-template.php. View all references

return apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post );


Top ↑

Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.