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
-
An array of comment classes.
- $css_class
-
An array of additional classes added to the list.
- $comment_id
-
The comment ID as a numeric string.
- $comment
-
The comment object.
- $post
-
The post ID or WP_Post object.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |