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

wpdiscuz_comment_form_include

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.

Changelog

since 7.0.0 version

Parameters

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

Usage

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

Was this article helpful to you? Yes No