WPML
add_filter( 'wpml_ls_model_language_css_classes', 'the_callback_function' );
Type
filter
Category
Miscellaneous
WPML Version
3.6.0

Description

Filter CSS classes for each item in a language switcher.

Arguments

There is only one parameter passed to this filter: css_classes.
$css_classes
(array) The array including CSS classes for each item of language switchers.

Example usage

Example
function wpmlhook_ls_model_language_css_classes( $css_classes ) {

    $css_classes[] = 'wpmlhook_custom';

    return $css_classes;
}
add_filter( 'wpml_ls_model_language_css_classes', 'wpmlhook_ls_model_language_css_classes' );

icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_setting, wpml_sub_setting, wpml_exclude_post_from_auto_translate, wpml_forms_config_ninja-forms, wpml_forms_config_wpforms, wpml_tf_feedback_open_link

All 30 Miscellaneous hooks →