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



comment_class › WordPress Filter Hooks

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