wordpress / latest / classes / wp_locale / is_rtl.html

WP_Locale::is_rtl(): bool

Checks if current locale is RTL.

Return

bool Whether locale is RTL.

Source

File: wp-includes/class-wp-locale.php. View all references

public function is_rtl() {
	return 'rtl' === $this->text_direction;
}

Used By

Used By Description

Changelog

Version Description
3.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/is_rtl