Un motore di ricerca WordPress per sviluppatori e autori di temi



comment_class ›

Da2.7.0
Deprecaton/a
apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id )
Parametri: (5)
  • (string[]) $classes An array of comment classes.
    Richiesto:
  • (string) $class A comma-separated list of additional classes added to the list.
    Richiesto:
  • (int) $comment_id The comment id.
    Richiesto:
  • (WP_Comment) $comment The comment object.
    Richiesto:
  • (int|WP_Post) $post_id The post ID or WP_Post object.
    Richiesto:
Definito a:
Codex:

Filters the returned CSS classes for the current comment.





Sorgenti

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