wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_class › WordPress Filter Hooks

Since2.7.0
Deprecatedn/a
apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post )
Parameters: (5)
  • (string[]) $classes An array of comment classes.
    Required: Yes
  • (string[]) $css_class An array of additional classes added to the list.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    Required: Yes
  • (WP_Comment) $comment The comment object.
    Required: Yes
  • (int|WP_Post) $post 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, $css_class, $comment->comment_ID, $comment, $post );