A WordPress-centric search engine for devs and theme authors



is_rtl ›

Since3.0.0
Deprecatedn/a
is_rtl ( No parameters )
Returns:
  • (bool) Whether locale is RTL.
Defined at:
Codex:

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.



Related Functions: is_tax, is_robots, is_tag, is_ssl, is_term

Source

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