wpseek.com
A WordPress-centric search engine for devs and theme authors



is_rtl › WordPress Function

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 Conditional Tags} article in the Theme Developer Handbook.


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

Source

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