WP_Locale::is_rtl()publicWP 3.0.0

Checks if current locale is RTL.

Method of the class: WP_Locale{}

No Hooks.

Return

true|false. Whether locale is RTL.

Usage

global $wp_locale;
$wp_locale->is_rtl();

Changelog

Since 3.0.0 Introduced.

WP_Locale::is_rtl() code WP 6.5.2

public function is_rtl() {
	return 'rtl' === $this->text_direction;
}