Background of the issue:
I am developing a site and using WPML for automatic translation. I create a product on the main webshop, which is synchronized with another webshop. WPML automatically translates the product into Dutch and German on the main site. I want WPML to translate the product first before it is synchronized with the other webshop in all three languages.
Symptoms:
I need WPML to have priority over the WooMultistore script for translations.
Questions:
Is it possible to have WPML translate everything first?
Can I give the WPML function priority over the WooMultistore script?
Is there a hook or method to prioritize WPML translations?
While WPML offers several hooks for custom purposes, it is a set and combination of different actions and filters, to accomplish the end result.
Since you're translating automatically, which involves sending/receiving requests between our translation servers, it incorporates a little complex workflow.
Provided that, prioritizing any given action or two, 'll not be much helpful, you'll also need to keep an eye on the status of these processes (i.e. if translation has been completed, is in progress or etc). You may also need to develop custom approach for the data in WPML tables.
I believe, instead of altering several hooks here and there, you should delay the script which is finally syncing the data to the other webshop. Usually WPML (or any other action/filters) are set to utilize the default priority of 10. Some may run early by lowering this priority and some are delayed by increasing it. You can set that sync-script to the maximum to ensure a delayed execution (i.e. 999).
Although the "WPML WooCommerce Multistore Add-On" is WPML compatible but the addon is maintained by WooMultistore, so I'll recommend checking their support for a suitable hook/script which you can delay to fit in the process. Because so far as I hidden link">understood this addon, they provide manual sync of products in bulk.