Title: Php Constants &#8211; deactivate detect language
Last modified: April 15, 2021

---

# Php Constants – deactivate detect language

 *  [guyader1983](https://wordpress.org/support/users/guyader1983/)
 * (@guyader1983)
 * [5 years ago](https://wordpress.org/support/topic/php-constants-deactivate-detect-language/)
 * Hi,
    I’m wondering if a php constant exists to deactivate the “detect browser
   language” ? I know it’s possible in the BO settings, but i’d like to set “detect
   browser language”to “false” (deactivate) in my config files. Thanks for your 
   help !
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-constants-deactivate-detect-language%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [5 years ago](https://wordpress.org/support/topic/php-constants-deactivate-detect-language/#post-14324068)
 * Hello,
 * There is no such constant. But as it is stored in an option you can use the WordPress
   filter for options. In this case `option_polylang`. You will get an array in 
   the filter with an element having ‘browser’ as key. Set the value to 0.
    I suggest
   that you add your filter in a mu-plugin.

Viewing 1 replies (of 1 total)

The topic ‘Php Constants – deactivate detect language’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-constants-deactivate-detect-language/#post-14324068)
 * Status: not resolved