wpDiscuz 7 API Documentation

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

wpdiscuz_comment_form_args

This filter can be used for changing attributes of the wpDiscuz comment form.

Changelog

Since 7.6.0 version

Parameters

  1. $wpdDefaultFormArgs – the array of the wpDiscuz comment form attributes:
    method: string,
    enctype: string,
    data_uploading: string,
    class_form: array.
  2.  $isMain- the form is main or reply
  3. $postID – the ID of the current post

Usage

add_filter("wpdiscuz_comment_form_args", function($args){
    $args["class_form"][] = "notranslate";
    return $args;
});

Was this article helpful to you? Yes 2 No