is_rtl

Checks if current locale is RTL.

Description

is_rtl(); 

Usage

  1. if ( !function_exists( 'is_rtl' ) ) { 
  2. require_once ABSPATH . WPINC . '/l10n.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_rtl(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/l10n.php  
  1. function is_rtl() { 
  2. global $wp_locale; 
  3. if ( ! ( $wp_locale instanceof WP_Locale ) ) { 
  4. return false; 
  5. return $wp_locale->is_rtl();