comment_class

最后更新于:2021-11-26 01:24:19

apply_filters( ‘comment_class’, string[] $classes, string[] $class, int $comment_id, GC_Comment $comment, int|GC_Post $post_id )

Filters the returned CSS classes for the current comment.

参数

$classes

(string[])
An array of comment classes.

$class

(string[])
An array of additional classes added to the list.

$comment_id

(int)
The comment ID.

$comment

(GC_Comment)
The comment object.

$post_id

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

源文件

文件: gc-includes/comment-template.php

View on Trac