This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Cambio dati fatturazione
Started by: valterC in: Assistenza in italiano |
|
2 | 3 | 3 years, 7 months ago | |
|
no webhook sent when woocommerce multilingual is used for translation
Started by: valterC
in: English Support
Problem: Solution: add_action('wp_insert_post', function($post_ID, $post, $update) {
if ($update || !in_array($post->post_type, ['product', 'product_variation'])) {
return;
}
$elem_details = apply_filters('wpml_element_language_details', null, [
'element_id' => $post_ID,
'element_type' => $post->post_type
]);
if (
(isset($elem_details->source_language_code) && !empty($elem_details->source_language_code))
|| (defined('REST_REQUEST') && REST_REQUEST) // For ATE
) {
$product = wc_get_product($post_ID);
do_action('woocommerce_new_product', $post_ID, $product);
}
}, 10, 3);If this solution doesn't seem relevant to your situation, please don't hesitate to open a new support ticket with us. |
|
2 | 14 | 4 years, 5 months ago | |
|
Webhook nuovo prodotto non parte se creato da woocommerce multilingual
Started by: valterC in: Assistenza in italiano |
|
2 | 2 | 4 years, 5 months ago | |
|
Problema con simple xml
Started by: valterC in: Chat Support |
|
1 | 2 |
4 years, 7 months ago
|