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.

Our next available supporter will start replying to tickets in about 5.47 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by tonyM-8 1 year, 5 months ago.

Assisted by: Andreas.

Author Posts
November 8, 2022 at 10:43 am #12408961

tonyM-8

wp_get_nav_menu_object( $id ) returns menu object for passed $id. Is there a way to get translated object. For example $id = 24 is English version of navigation and $id = 25 is French translation. How can I get French version without exact $id? This is AJAX call and current language is not possible, but I can pass current language value.

November 8, 2022 at 4:28 pm #12412485

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

I suppose you are looking for this hook :

https://wpml.org/wpml-hook/wpml_object_id/

I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂

Regards,
Andreas

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.