get_comment_class


get_comment_class ( $class = '', $comment_id = null, $post_id = null )

Parameters:
  • (string|array) $class Optional. One or more classes to add to the class list. Default empty.
  • (int|WP_Comment) $comment_id Comment ID or WP_Comment object. Default current comment.
  • (int|WP_Post) $post_id Post ID or WP_Post object. Default current post.
Returns:
  • (array) 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, get_comment_date, get_comment_link

Top Google Results

User discussions

wpseek mobile