Uma área de pesquisa sobre o WordPress para devs e autores do tema



comment_class ›

Desde2.7.0
Obsoleton/a
apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id )
Parâmetros: (5)
  • (string[]) $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
Definido em:
Codex:

Filters the returned CSS classes for the current comment.





Fonte

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