pll__() polylang function undefined when replacing __() in plugin


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?


Eliott 3 months 0 Answers 7 views 0

Leave an answer