wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



comment_class › Les Filtres WordPress

Depuis2.7.0
Dépréciéen/a
apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post )
Paramètres: (5)
  • (string[]) $classes An array of comment classes.
    Requis: Oui
  • (string[]) $css_class An array of additional classes added to the list.
    Requis: Oui
  • (string) $comment_id The comment ID as a numeric string.
    Requis: Oui
  • (WP_Comment) $comment The comment object.
    Requis: Oui
  • (int|WP_Post) $post The post ID or WP_Post object.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the returned CSS classes for the current comment.





Source

return apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post );