wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_rtl › WordPress Function

Depuis3.0.0
Dépréciéen/a
is_rtl ( Pas de paramètres )
Retourne:
  • (bool) Whether locale is RTL.
Défini(e) dans:
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.


Fonctions en relation: 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();
}