WPML
apply_filters( 'wpml_is_rtl', mixed $empty_value )
Type
filter
WPML Version
3.2

Description

Returns TRUE is the current language is RTL

Arguments

$empty_value
(mixed) (Required) This is normally the value the filter will be modifying. We are not filtering anything here so set this to NULL. This for the filter function to actually receive the full argument list

Example usage

Example
if ( apply_filters( 'wpml_is_rtl', NULL) ) {
    //Link to RTL CSS stylesheet
} else {
    //Link to LTR CSS stylesheet
}

// Alternatively

//Include link to LTR CSS stylesheet here

if ( apply_filters( 'wpml_is_rtl', false ) ) {
    //Link to RTL CSS stylesheet
}

wpml_decode_custom_field, wpml_footer_language_selector, wpml_add_language_form_field, wpml_ls_exclude_in_menu, wpml_alternate_hreflang, wpml_head_langs, wpml_must_translate_canonical_url, wpml_browser_redirect_language_params, wpml_active_languages, wpml_encode_custom_field

All 29 Site-Wide Language Information hooks →