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:

Checks if current locale is RTL.



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

Source

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