- availability:
-
WPML Version: 3.2
- description:
-
Returns TRUE is the current language is RTL
- type:
- filter
- category:
- Site-Wide Language Information
- parameters:
-
apply_filters( 'wpml_is_rtl', mixed $empty_value )
- $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
- hook 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 }