- availability:
-
WPML Version: 3.6.0
- description:
-
Filter CSS classes for language switcher wrappers. These wrappers are not available for language switchers in menus.
- type:
- filter
- category:
- Miscellaneous
- parameters:
-
add_filter( 'wpml_ls_model_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 language switcher wrappers.
- hook example usage:
-
Example
function wpmlhook_ls_model_css_classes( $css_classes ) { $css_classes[] = 'wpmlhook_custom'; return $css_classes; } add_filter( 'wpml_ls_model_css_classes', 'wpmlhook_ls_model_css_classes' );