apply_filters( 'comment_class', string[] $classes , string $class , int $comment_id , WP_Comment $comment , int|WP_Post $post_id )
Filters the returned CSS classes for the current comment.
Description Description
Parameters Parameters
- $classes
-
(string[]) An array of comment classes.
- $class
-
(string) A comma-separated list of additional classes added to the list.
- $comment_id
-
(int) The comment id.
- $comment
-
(WP_Comment) The comment object.
- $post_id
Source Source
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |