WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

is_rtl() WP 3.0.0

Determines whether the current locale is right-to-left (RTL).

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

Хуков нет.


true/false. Whether locale is RTL.




  • Global. WP_Locale. $wp_locale WordPress date and time locale object.

Список изменений

С версии 3.0.0 Введена.

Код is rtl: wp-includes/l10n.php WP 5.3

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