wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_thread_end
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors


This filter can be used for changing the HTML of the printed thread.


since 7.0.0 version


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


add_filter("wpdiscuz_thread_end", function ($output, $comment, $depth, $args) {
    if ($depth > 2) {
        $output .= "Custom Message";
    return $output;
}, 10, 4);

Was this article helpful to you? Yes No