I´m working on some project and looking for functions that automatically upload a Wordpress post into Lingotek (Polylang extension) via PHP.
I use my own script where the user creates a post via the form and puts it into Wordpress using the wp_insert_post function. Then, by the pll_set_post_language
function (polylang plugin function), I set the default language.
Is there PHP function that automatically uploads a created post to Lingotek and translates it to English without logging into Wordpress administration?
Thank you for advice.