Title: Api function get_default_language
Last modified: August 20, 2016

---

# Api function get_default_language

 *  Resolved [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/api-function-get_default_language/)
 * Hi
 * Just a suggestion.
    I’d love to have the get_default_language() in the api section
   so we developers can have this without making our own function.
 * Seems like its already in admin-filters.php
 * Thanks 🙂
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

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

 *  Thread Starter [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/api-function-get_default_language/#post-3225453)
 * Or is there a reason not to use the default lang?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/api-function-get_default_language/#post-3225455)
 * Hi!
 * That’s something which would not be difficult to add. But take care that get_default_language
   does not always return the default language but the language selected in the 
   language filter (maybe I should rename this function as its current name can 
   lead to misinterpretation). I guess you would like something similar as pll_current_language
   but available on both admin and frontend?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/api-function-get_default_language/#post-3225473)
 * In v1.0, a new function ‘pll_default_language’ (with same options as ‘pll_current_language’).
   Unlike ‘pll_current_language’, it will be available on both admin and frontend.
 * The current development version is available:
    [http://downloads.wordpress.org/plugin/polylang.zip](http://downloads.wordpress.org/plugin/polylang.zip)
 *  Thread Starter [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/api-function-get_default_language/#post-3225474)
 * So awesome! Cheers mate 🙂

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

The topic ‘Api function get_default_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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Compute](https://wordpress.org/support/users/compute/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/api-function-get_default_language/#post-3225474)
 * Status: resolved