Checks if current locale is RTL.
public function is_rtl() {
return 'rtl' === $this->text_direction;
}
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/is_rtl