0

We use Splitit to process certain payments and are trying to implement translations with polylang. Simply, we are replacing () with pll() and registering the strings in functions.php

The issue is that we get the following fatal error which crashes the whole site:

Uncaught Error: Call to undefined function pll__()

It seems that the polylang functions are not defined when running code from the Splitit plugin php file, is there a specific way to address this?

Thanks!

0

Actually just added add_action('plugins_loaded', 'init_splitit_method'); to make sure splitit is loaded after polylang and it now all works fine!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.