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

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

1 Posts
1 Users
0 Reactions
1,296 Views
Asti
 Asti
(@asti)
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: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

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.


   
Share: