is_rtl() – Determines whether the current locale is right-to-left (RTL).

You appear to be a bot. Output may be restricted

Description

Determines whether the current locale is right-to-left (RTL).

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Usage

$bool = is_rtl();

Parameters

Returns

bool Whether locale is RTL.

Source

File name: wordpress/wp-includes/l10n.php
Lines:

1 to 7 of 7
function is_rtl() {
  global $wp_locale;
  if ( ! ( $wp_locale instanceof WP_Locale ) ) {
    return false;
  }
  return $wp_locale->is_rtl();
}
 

 View on GitHub View on Trac