polylang translation of a custom post created by wp_insert_post()

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)