This filter can be used for changing attributes of the wpDiscuz comment form.
Changelog
Since 7.6.0 version
Parameters
- $wpdDefaultFormArgs – the array of the wpDiscuz comment form attributes:
method: string,
enctype: string,
data_uploading: string,
class_form: array. - $isMain- the form is main or reply
- $postID – the ID of the current post
Usage
add_filter("wpdiscuz_comment_form_args", function($args){ $args["class_form"][] = "notranslate"; return $args; });