Determines whether the current locale is right-to-left (RTL).
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Deprecate get_bloginfo(‘text_direction’) in favor of is_rtl() in Version 3.0.
*/
function switch_to_locale( $locale ) {
/* @var WP_Locale_Switcher $wp_locale_switcher */
global $wp_locale_switcher;
if ( ! $wp_locale_switcher ) {
return false;
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_rtl