This filter can be used for changing the classes applied to the comment wrapper div.
Parameters
1. $commentWrapperClasses (type: array) – the array of the classes applied to comment wrapper div
2. $comment (type: WP_Comment object) – the object of the current comment
Usage
add_filter("wpdiscuz_comment_wrap_classes", function ($commentWrapperClass, $comment) {
if ($comment->comment_ID == 1) {
$commentWrapperClass[] = "my-cutom-wrapper-class";
}
return $commentWrapperClass;
}, 10, 2);
Changelog
Since 7.0.0 version
