Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



comment_class ›

Seit2.7.0
Veraltetn/v
apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id )
Parameter: (5)
  • (string[]) $classes An array of comment classes.
    Erforderlich: Ja
  • (string) $class A comma-separated list of additional classes added to the list.
    Erforderlich: Ja
  • (int) $comment_id The comment id.
    Erforderlich: Ja
  • (WP_Comment) $comment The comment object.
    Erforderlich: Ja
  • (int|WP_Post) $post_id The post ID or WP_Post object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the returned CSS classes for the current comment.





Quellcode

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