Skip Navigation
availability:

WPML Version: 3.6.0

description:

Filter CSS classes for each item in a language switcher.

type:
filter
category:
Miscellaneous
parameters:
add_filter( 'wpml_ls_model_language_css_classes', 'the_callback_function' );

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.
hook 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' );