تخطي إلى المحتوى تخطي إلى الشريط الجانبي

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 0 أصوات.

آخر تحديث بواسطة michaelB-258 قبل 5 أيام، 14 ساعة.

يساعده: Christopher Amirian.

الكاتب المشاركات
15 أبريل، 2026 في 6:55 ص #17970337

michaelB-258

Hello WPML Support,

I’m working on a custom content automation workflow and I would like to clarify whether WPML supports programmatically triggering automatic translation for a specific language pair, especially when the source language is not the site’s default language. WPML’s documentation for Translate Everything Automatically states that this mode only translates content from the default language to secondary languages, and that if content is published in a secondary language, it must be translated to other languages manually from the Translation Dashboard.

My specific use case is the following:

- the site’s default language is not German
- I create or update posts in German (DE) programmatically
- I need to trigger automatic translation from DE → EN

Ideally this should happen via code, at a specific moment in my workflow, or even via an external trigger / HTTP request
the content is often created first as a draft, and I would like translation to happen before publication if possible. WPML’s Translation Dashboard documentation indicates that content can be filtered by status, including Draft, but I could not find official documentation for triggering this process programmatically for a specific post/language pair.

I also reviewed your documentation regarding WPML’s dependency on the WordPress REST API. It mentions internal WPML REST namespaces such as /wpml/tm/v1 for Translation Management / Advanced Translation Editor, but I could not determine whether there is any supported public API for triggering automatic translation jobs for regular posts/pages from an external system.

So my questions are:

- Is there any officially supported way to trigger automatic translation programmatically for a specific post and a specific language pair?
- Is there any hook, function, REST endpoint, or internal API that is officially supported for this purpose? I am specifically looking for something like “send this post to automatic translation now” via code or an authenticated external trigger.
- If automatic translation cannot be triggered directly for non-default-source languages, is there any recommended WPML-supported workflow to achieve this?
- Is there any supported way to do this for draft posts, before they are published? The Translation Dashboard appears to support selecting drafts, but I am not sure whether this is only for manual dashboard use or can also be triggered programmatically.

For context, my automation is created externally and can call WordPress via authenticated HTTP requests, so if there is a supported custom endpoint pattern or documented internal action that WPML recommends for advanced integrations, that would be extremely helpful.

Thanks in advance for any clarification you can provide.