WP_Locale::is_rtl
Checks if current locale is RTL.
Method of the class: WP_Locale{}
No Hooks.
Returns
true|false. Whether locale is RTL.
Usage
global $wp_locale; $wp_locale->is_rtl();
Changelog
| Since 3.0.0 | Introduced. |
WP_Locale::is_rtl() WP Locale::is rtl code WP 6.9.1
public function is_rtl() {
return 'rtl' === $this->text_direction;
}