Hello,
I would like to use WP-CLI to run "WP All Import" plugin profiles in order to manage a WooCommerce catalog.
If I try to run one of them via WP-CLI, it always considers the main language while there could be problems with the secondary languages.
Is it possible to run profiles via WP-CLI in these other languages without having risks to break somenthing in the site?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
Thank you for contacting WPML support!
If I'm not mistaken this would not be WPML question but instead a question of WP All Import's WP-CLI integration whether it can accept language parameters, correct?
hidden link
Can you tell me how these imports look like, what are your all import calls that are currently running in the original language and how do you expect them to look like if the call was done in another language?
We do not have this supported but I also don't see that such functionality was requested by anyone else in our forums yet, so even if I would submit this as a feature request I don't think it will gain traction until we have more reports.
Hello Bruno,
thanks for you reply.
I've already asked the same question to WP All Import support team and they replied they don't provide support to multilingual imports, as the WPML All Import Add-On is developed and supported directly by your team. So they suggested writing to you.
Honestly I don't know which one should provide this feature but I would agree more with them because the multilingual support is a feature introduced by your plugin.
Anyway, here's the situation: I've created in backend two profiles, one in primary language and one in the secondary one. This last one is related to the first one with the standard settings you provide and everything works fine if I run the two import profiles in backend.
However, if I try to run them via WP-CLI, some problems may araise with posts and terms that could be set in the primary language instead of the one that belongs to the current profile. I think it's necessary to force somehow the language that profile must use.
WP All Import, as you can read also in the link you pasted, provides this command to run profiles via WP-CLI:
wp all-import run <PROFILE_ID>
There seems to be no option to force the language.
I think the main problem stands in the chained execution of profiles.
If I run
wp all-import run <PROFILE_ID_lang1>,<PROFILE_ID_lang2>
the import always considers the language of the first executed profile so the next profile would not work correctly because they're going to use the wrong language.
Thanks for the support.
Hope you will find soon a way to fix this issue.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.