Title: Polylang Compatibility
Last modified: January 6, 2020

---

# Polylang Compatibility

 *  [hellobastpepite](https://wordpress.org/support/users/hellobastpepite/)
 * (@hellobastpepite)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/polylang-compatibility-24/)
 * Hi dear support,
 * I use polylang plugin to display my website in two languages. For contact form,
   i use contact form 7. I think Autodetect language don’t work with polylang plugin.
 * Can you help me ?
    Thanks a lot
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpolylang-compatibility-24%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/polylang-compatibility-24/#post-12305612)
 * Auto detect works with browser language not website language. If any visitor’s
   browser is set to another language then they will see that language captcha.
 * If you want to show captcha in website language then you can use `anr_get_option`
   filter hook to set language on run time.
 *  Thread Starter [hellobastpepite](https://wordpress.org/support/users/hellobastpepite/)
 * (@hellobastpepite)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/polylang-compatibility-24/#post-12308546)
 * Hi Shamim,
 * Thanks for your answer,
    How can i use anr_get_option filter hook to set language
   on run time ? I’m on Google Chrome.
 * Thanks
 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/polylang-compatibility-24/#post-12315502)
 * You can add following code in your theme’s (child theme’s if you are using) functions.
   php
 *     ```
       add_filter( 'anr_get_option', function( $value, $option ){
           if( 'language' == $option && function_exists( 'pll_current_language' ) ){
               $value = pll_current_language();
           }
           return $value;
       }, 10, 2);
       ```
   
 * Let me know.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Polylang Compatibility’ is closed to new replies.

 * ![](https://ps.w.org/advanced-nocaptcha-recaptcha/assets/icon-256x256.png?rev
   =2961544)
 * [CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/reviews/)

## Tags

 * [language](https://wordpress.org/support/topic-tag/language/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/polylang-compatibility-24/#post-12315502)
 * Status: not resolved