wpDiscuz 7 API Documentation

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


This filter can be used for changing the path of the comment-form.php . The hook works if the file is no customized, that is, there is no such file in the active theme’s wpdiscuz folder.


since 7.0.0 version


$path (type: string) – the path of the comment-form.php that should be loaded


add_filter("wpdiscuz_comment_form_include", function ($path) {
    return "FULL_PATH_TO_FILE";
}, 10, 3);

Was this article helpful to you? Yes No