Programmatically set post language and translations
-
I’m using WP All Import to migrate articles from another site to the new one. But I’m having a hard time to programmatically set a language to a specified post and update the posts translations.
Trying to update post language from pll_set_post_language(), but Polylang’s save_post hooks seems to overrule that one.
Are there any good ways to programmatically update post language and translations or do I have to update all translations at once (like in the save_post hook in admin-filters-post)?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Programmatically set post language and translations’ is closed to new replies.