wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



comment_class › Filtr WordPress Hooks

Od2.7.0
Przestarzałyn/a
apply_filters( 'comment_class', $classes, $css_class, $comment->comment_ID, $comment, $post )
Parametry: (5)
  • (string[]) $classes An array of comment classes.
    Wymagane: Tak
  • (string[]) $css_class An array of additional classes added to the list.
    Wymagane: Tak
  • (string) $comment_id The comment ID as a numeric string.
    Wymagane: Tak
  • (WP_Comment) $comment The comment object.
    Wymagane: Tak
  • (int|WP_Post) $post The post ID or WP_Post object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the returned CSS classes for the current comment.





Źródło

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