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.


This topic contains 3 replies, has 2 voices.

Last updated by zsoltE-2 8 months, 3 weeks ago.

Assigned support staff: Bruno.

Author Posts
September 11, 2019 at 10:22 am #4552535


I am developing a multilanguage Woocomemrce store.
Is there any WPML function which give back the translated post's object?

For example: I have a post in default language, where post_id = 1;
This post is translated, and I would like to get the post id of the English translations.

Regards, Zsolt

September 11, 2019 at 11:13 pm #4556705


Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)


Thank you for contacting us. You can use the "wpml_object_id" filter:

Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.

September 12, 2019 at 4:34 am #4558323


Hi Bruno,
Yes, this is what I looked for.


September 12, 2019 at 4:44 am #4558337


My issue is resolved now. Thank you!