Categories
PHP Snippet WordPress

Copy and synchronize WordPress posts programmatically with Polylang

You can batch sync your posts with the following script. If you have a lot of posts to sync, this script should be run outside of WordPress.

2 replies on “Copy and synchronize WordPress posts programmatically with Polylang”

I need to do something similar to this, but instead of doing it in bulk, I’d like to do it to a single post whenever one is created or updated. Is this something you could help with?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.