A WordPress-centric search engine for devs and theme authors



comment_class ›

Since2.7.0
Deprecatedn/a
apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id )
Parameters: (5)
  • (array) $classes An array of comment classes.
    Required: Yes
  • (string) $class A comma-separated list of additional classes added to the list.
    Required: Yes
  • (int) $comment_id The comment id.
    Required: Yes
  • (WP_Comment) $comment The comment object.
    Required: Yes
  • (int|WP_Post) $post_id The post ID or WP_Post object.
    Required: Yes
Defined at:
Codex:

Filters the returned CSS classes for the current comment.





Source

return apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id );