WP_Locale::is_rtl() WordPress Method

The WP_Locale::is_rtl() method is used to check if the current locale is right-to-left. This can be useful for plugins and themes that need to handle right-to-left text or layouts.

WP_Locale::is_rtl() #

Checks if current locale is RTL.


Return

(bool) Whether locale is RTL.


Top ↑

Source

File: wp-includes/class-wp-locale.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.