WPML
do_action( 'wpml_add_language_selector' )
Type
action
WPML Version
3.2

Description

Displays the drop down language selector as configured from the Custom language switchers section found on WPML → Settings → Languages.

Arguments

This action hook does not have any parameters.

Example usage

Add the code below to your theme template files, where you want the language switcher to be displayed at.

Example
do_action( 'wpml_add_language_selector' );

If you like you can also add the above code line in a PHP widget like PHP Code Widget (opens in a new tab)

wpml_decode_custom_field, wpml_footer_language_selector, wpml_add_language_form_field, wpml_ls_exclude_in_menu, wpml_is_rtl, wpml_alternate_hreflang, wpml_head_langs, wpml_must_translate_canonical_url, wpml_browser_redirect_language_params, wpml_redirect_to_chosen_language

All 31 Site-Wide Language Information hooks