This filter can be used for adding new buttons in the tools menu of the comment.
Changelog
Since 7.0.0 version
Parameters
1. $html (type: string) – the displayed HTML in the comments tools menu
2. $comment (type: WP_Comment object) – the object of the current comment
3. $user (type: WP_User object) – the user object of the current comment author
4. $currentUser (type: WP_User object) – the user object of the current user
Usage
add_filter("wpdiscuz_comment_buttons", function ($html, $comment, $user, $currentUser) {
$html .= "Custom Button";
return $html;
}, 10, 4);