get_comment_class
get_comment_class ( $css_class = '', $comment_id = null, $post = null )
Parameters:- (string|string[]) css_class Optional. One or more classes to add to the class list. Default empty.
- (int|WP_Comment) comment_id Optional. Comment ID or WP_Comment object. Default current comment.
- (int|WP_Post) post Optional. Post ID or WP_Post object. Default current post.
Returns:- (string[]) An array of classes.
Defined at:Change Log: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Returns the classes for the comment div as an array.