跳过导航
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 -
- - - - - - -

支持者时区: Europe/Madrid (GMT+01:00)

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 fullsix-portugal-marketing-int 2 months, 3 weeks前 更新。

协助者:: Paola Mendiburu.

作者 文章
28 11 月, 2024 于 11:33 上午 #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?

主题 '[關閉] When translating media, there is now way to know when a new image is uploaded so we can upload it to…' 已关闭,不再接受新回复。