is_rtl()

Checks if current locale is RTL.


Return

(bool) Whether locale is RTL.


Source

File: wp-includes/l10n.php

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


Changelog

Changelog
Version Description
WP-3.0.0 Introduced.