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.

This topic contains 1 reply, has 2 voices.

Last updated by Eran Helzer 1 year, 5 months ago.

Assisted by: Eran Helzer.

Author Posts
July 17, 2023 at 3:46 am #14045615

xiaoweiX

How can I programmatically get the translated version of a specific taxonomy (product attribute in my case), could you direct me to the API documentation please?

July 17, 2023 at 7:44 am #14046769

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

This is our Coding API:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#hook-605256

Without getting to much into it, I believe what you want can be achieved with "wpml_object_id" to get the id of the translated version + "get_term" to get the value using that id.

If you need any further assistance, please do not hesitate to ask.