Title: Fatal error undefined function
Last modified: February 4, 2021

---

# Fatal error undefined function

 *  Resolved [Philip H](https://wordpress.org/support/users/philiphussak/)
 * (@philiphussak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-12/)
 * The function [weglot_get_current_and_original_language()](https://developers.weglot.com/wordpress/helpers-functions#weglot_get_current_and_original_language)
   seems to be missing from 3.3.1 which causes a fatal error on sites using it

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

 *  Plugin Author [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * (@remyb92)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-12/#post-14002461)
 * Hi Philip, yes you are right, this function has been removed. Can you email me
   at [support@weglot.com](https://wordpress.org/support/topic/fatal-error-undefined-function-12/support@weglot.com?output_format=md)(
   ask for remy) with the code that uses this function ?
 * Thanks
 *  Thread Starter [Philip H](https://wordpress.org/support/users/philiphussak/)
 * (@philiphussak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-12/#post-14002530)
 * Hey Remy, I took over the project from another agency and they only used the 
   function to get the current language, so I just changed to code to use weglot_get_current_language()
   instead.
 * I just wanted to report it here in case it was removed on accident, since it’s
   still in your documentation. 🙂
 *  Plugin Author [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * (@remyb92)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-12/#post-14002991)
 * Ok perfect 🙂 Yes I’ll to remove it form the doc

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

The topic ‘Fatal error undefined function’ is closed to new replies.

 * ![](https://ps.w.org/weglot/assets/icon-256x256.gif?rev=3333666)
 * [Translate WordPress with Weglot - Multilingual AI Translation](https://wordpress.org/plugins/weglot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weglot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weglot/)
 * [Active Topics](https://wordpress.org/support/plugin/weglot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weglot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weglot/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-12/#post-14002991)
 * Status: resolved