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

Description Description

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

Top ↑

Return Return

(bool) Whether locale is RTL.

Top ↑

More Information More Information

Deprecate get_bloginfo(‘text_direction’) in favor of is_rtl() in Version 3.0.

Top ↑

Source 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();

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.