The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
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
16.1 K Views
Asti
 Asti
(@asti)
Illustrious Member Support
Joined: 8 years ago
Posts: 8208
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#7322]

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: