Apparently Polylang has an undocumented pll_save_post API method. See here: https://wordpress.org/support/topic/programmatically-set-post-language-and-translations
Apparently Polylang has an undocumented pll_save_post API method. See here: https://wordpress.org/support/topic/programmatically-set-post-language-and-translations