apply_filters( 'comment_class', string[] $classes, string $class, int $comment_id, WP_Comment $comment, int|WP_Post $post_id )

Filters the returned CSS classes for the current comment.

Description Description

Parameters Parameters


(string[]) An array of comment classes.


(string) A comma-separated list of additional classes added to the list.


(int) The comment id.


(WP_Comment) The comment object.


(int|WP_Post) The post ID or WP_Post object.

Top ↑

Source Source

File: wp-includes/comment-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.