Pular a navegação
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 -
- - - - - - -

Fuso horário do apoiador: Europe/Madrid (GMT+01:00)

Marcado: 

Este tópico contém 0 respostas, tem 1 voz.

Última atualização: fullsix-portugal-marketing-int 2 meses, 3 semanas atrás.

Assistido por: Paola Mendiburu.

Autor Posts
novembro 28, 2024 em 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?

O tópico '[Fechado] When translating media, there is now way to know when a new image is uploaded so we can upload it to…' está fechado para novas respostas.