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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Daniel Romangoli 1 year, 6 months ago.

Assigned support staff: Vincenzo.

Author Posts
February 8, 2019 at 3:26 pm #3175950

Daniel Romangoli

Tell us what you are trying to do?
We are using a multisite in WordPress and hired a app dev agency to build an app (iOS/Android) for one of our multisites.

We are working on integration and our developer is having an extremely hard time figuring out how we can get post translations from the database. Since everything has its own ID we can’t figure how the original post (that’s in Portuguese) is related to the translated versions (ICL en and es).

We have a webhook setup but it’s pulling all info from Spanish: hidden link

What would be the method to pull original language posts then pass the ID to get the translations?

What is the link to your site?
hidden link

February 11, 2019 at 9:14 am #3181549

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

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

Hello, thank you for contacting WPML Support!

You can find WPML hooks reference here:
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

The most relevant sections are:
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#retrieving-language-information-for-content

- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#retrieving-localized-content

- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#finding-the-translation-state-of-content

Please let me know if this solves the issue or if you need further details.

Thank you

March 22, 2019 at 4:05 pm #3442127

Daniel Romangoli

My issue is resolved now. Thank you!