Saltar navegación
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Zona horaria del aficionado: Europe/Madrid (GMT+01:00)

Etiquetado: 

Este tema contiene 0 respuestas, tiene 1 voz.

Última actualización por fullsix-portugal-marketing-int hace 2 meses, 3 semanas.

Asistido por: Paola Mendiburu.

Autor Entradas
noviembre 28, 2024 en 11:33 am #16454639

fullsix-portugal-marketing-int

Background of the issue:
I am trying to change the image when the popup of the media translation is open. After selecting an image and saving, I would like to know that a new image was uploaded and trigger an event so I can upload it to an S3 bucket. I expected to see a trigger in the file "/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-save-translation.php" in the action `public function save_media_translation()` before the response like `do_action("wpml_save_media_translation_after", ['attachment_id' => $attachment_id]);` that would trigger right before the `wp_send_json_success( $response );`.

Symptoms:
There is no way to know when a new image is uploaded so I can upload it to S3.

Questions:
How can I trigger an event when a new image is uploaded during media translation?
Is there a way to know when a new image is uploaded to trigger an upload to S3?

El tema '[Cerrado] When translating media, there is now way to know when a new image is uploaded so we can upload it to…' está cerrado a nuevas respuestas.