wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



is_rtl › WordPress Function

Desde3.0.0
Obsoleton/a
is_rtl ( Sem parâmetros )
Retorna:
  • (bool) Whether locale is RTL.
Definido em:
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.


Funções relacionadas: is_tag, is_tax, is_ssl, is_robots, is_date

Fonte

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