Title: undefined function pll_current_language();
Last modified: February 16, 2018

---

# undefined function pll_current_language();

 *  [RonaldS](https://wordpress.org/support/users/norus/)
 * (@norus)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-pll_current_language/)
 * I am getting undefined function pll_current_language()
    Uncaught Error: Call 
   to undefined function pll_current_language() All language pages works okay. I
   checked the core: function pll_current_language( $field = ‘slug’ ) { return isset(
   PLL()->curlang->$field ) ? PLL()->curlang->$field : false; } So it should work
   properly, but it doesnt. How to solve this issue?
    -  This topic was modified 8 years, 6 months ago by [RonaldS](https://wordpress.org/support/users/norus/).
    -  This topic was modified 8 years, 6 months ago by [RonaldS](https://wordpress.org/support/users/norus/).

The topic ‘undefined function pll_current_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/)

 * 0 replies
 * 1 participant
 * Last reply from: [RonaldS](https://wordpress.org/support/users/norus/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-pll_current_language/)
 * Status: not resolved