Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 3 voices.

Last updated by Andreas W. 1 year ago.

Assisted by: Andreas W..

Author Posts
January 31, 2024 at 10:52 am #15248554

Simon

Hello,

We have a client that has translated many post/pages/cpts with the classic editor from wordpress. Recently he switched to translating pages using the WPML translation editor and using automatic translations.

We would need a method to query all page that have not been translated with the WPML translation editor. Or a function that we can pass the post ID and have it return a boolean if the entity was translated with WPML translation editor or not.

Could you help me?

Kind regards

January 31, 2024 at 10:23 pm #15252281

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

I'm sorry to inform you that there is no hook available for your requirements. However, you can find a list of available WPML Hooks at https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#hook-10289979.

You can try using the 'wpml_element_translation_type' filter at https://wpml.org/wpml-hook/wpml_element_translation_type/ to see if it helps.

If that doesn't work, you can check for a custom field in the wp_postmeta table with meta_key _last_translation_edit_mode and meta_value translation-editor or native-editor. The native-editor is the classic editor in WordPress, and it might help you build your custom query.

I hope this information is helpful.

February 1, 2024 at 12:36 am #15252451

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The value that you are looking for is inside the table $prefix_icl_translate_job inside the column called "editor" but it is kind of tricky to make this value display inside the lists of your tables and posts, as this custom table does not use the post_id.

I have been trying to make it work for you but failed yet.

Further, I do not quite understand why this information might be useful. Could you please explain further?

The translation method for each content is found on the right sidebar of the WordPress Editor on any original content only.

Best regards
Andreas

The topic ‘[Closed] Filter posts by translation tool used’ is closed to new replies.