Skip Navigation
Updated
April 19, 2024

WP All Export lets you automate exports with WordPress cron jobs. If your site has content in multiple languages, you’ll need to handle the export for each language separately.

When you set up a WordPress cron job to export your multilingual content, here’s what you need to do:

  1. Add the Language Code to Your URL

By adding the language code to your URL, you make sure the export is done in the correct language. For example, to export data in Portuguese, your URL would look something like this:

  • http://example.com/pt-pt/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=52&action=trigger
  • http://example.com/pt-pt/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=52&action=processing

As you can see, the URLs now include /pt-pt/, the language code for Portuguese.

  1. Use Different Export IDs for Each Language

If you’re exporting content in more than one language, assign a unique ID to each language export using numbers of your choice. If you use the same ID for more than one language, one export might overwrite another.

In the previous example of exporting Portuguese content with a cron job URL, the export ID was 52 (export_id=52). Now, let’s say you also need to export content in Italian. You’ll need to change the export ID and add the Italian language code to the URL. 

Here’s an example of how this looks for Italian:

  • http://example.com/it-it/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=53&action=trigger
  • http://example.com/it-it/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=53&action=processing

By changing /pt-pt/ to /it-it/, you specify that the content is in Italian. Changing the export ID from 52 to 53 ensures the Italian export doesn’t overwrite the Portuguese one.