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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year, 8 months ago.

Assisted by: Bobby.

Author Posts
September 12, 2023 at 4:20 pm #14385379

simoneP-25

HI,

I'm trying to get the name of the current language.

I tried using apply_filters( 'wpml_current_lingual', null ), but it just returns the code.

How to get the language name using apply_filters('wpml_current_lingual', null)?

Thank you

September 14, 2023 at 12:11 am #14392895

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

Please try the following hook instead and let me know your results:

wpml_display_language_names

WPML Hook Reference: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#hook-605010

The topic ‘[Closed] print language name using "apply_filters( 'wpml_current_language', null )"’ is closed to new replies.