comment_class

Advertisement

Summery Summery

Filters the returned CSS classes for the current comment.

Syntax Syntax

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

Parameters Parameters

$classes

An array of comment classes.

$class

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

$comment_id

The comment id.

$comment

The comment object.

$post_id

The post ID or WP_Post object.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply