WP_Locale::is_rtl() public WP 3.0.0
Checks if current locale is RTL.
{} It's a method of the class: WP_Locale{}
No Hooks.
Return
true/false. Whether locale is RTL.
Usage
global $wp_locale; $wp_locale->is_rtl();
Changelog
Since 3.0.0 | Introduced. |
Code of WP_Locale::is_rtl() WP Locale::is rtl WP 5.6
public function is_rtl() {
return 'rtl' === $this->text_direction;
}