The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How to solve the co...
Clear all

[Solved] How to solve the conflict with the GTranslate plugin

1 Posts
1 Users
0 Reactions
Illustrious Member Support
Joined: 6 years ago
Posts: 7180
Topic starter  

Starting from the wpDiscuz 7.6.0 version, you can change the attributes of the wpDiscuz comment form using the wpdiscuz_comment_form_args hook.

With the hook, you'll be allowed to add the 'notranslate' class for the wpDiscuz comment form, so the GTranslate plugin functions won't work for the wpDiscuz comment form.

 You should use the hook code below: 

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

This doc should help you easily add the PHP code in the active theme functions.php file:

In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.