This filter can be used for changing the HTML of the printed thread.
Changelog
since 7.0.0 version
Parameters
1. $commentOutput (type: string) - the HTML of the echoed comment
2. $comment (type: WP_Comment object) - the object of the current comment
3. $depth (type: int) - the nested level of the comment
4. $args (type: array) - the arguments that should be passed to the walker
2. $comment (type: WP_Comment object) - the object of the current comment
3. $depth (type: int) - the nested level of the comment
4. $args (type: array) - the arguments that should be passed to the walker
Usage
add_filter("wpdiscuz_thread_end", function ($output, $comment, $depth, $args) {
if ($depth > 2) {
$output .= "Custom Message";
}
return $output;
}, 10, 4);