Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment-template.php | apply_filters | 539 | /** * Filters the returned CSS classes for the current comment. * * @since 2.7.0 * * @param string[] $classes An array of comment classes. * @param string[] $css_class An array of additional classes added to the list. * @param string $comment_id The comment ID as a numeric string. * @param WP_Comment $comment The comment object. * @param int|WP_Post $post The post ID or WP_Post object. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $classes | An array of comment classes. |
string[] | $css_class | An array of additional classes added to the list. |
string | $comment_id | The comment ID as a numeric string. |
WP_Comment | $comment | The comment object. |
int|WP_Post | $post | The post ID or WP_Post object. |