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:
  • 4: .

Description

Returns the classes for the comment div as an array.

Related Functions

comment_class, get_comments, get_comment_date, get_comment, get_comment_link

Top Google Results

User discussions

wpseek mobile