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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by zsoltE-2 1 month, 1 week ago.

Assigned support staff: Bruno.

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

zsoltE-2

Hi,
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

Bruno
Supporter

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

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

Hi,

Thank you for contacting us. You can use the "wpml_object_id" filter: https://wpml.org/wpml-hook/wpml_object_id/

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

zsoltE-2

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

Zsolt

September 12, 2019 at 4:44 am #4558337

zsoltE-2

My issue is resolved now. Thank you!