Determines whether the current locale is right-to-left (RTL).
Description
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Source
*/
function switch_to_locale( $locale ) {
/* @var WP_Locale_Switcher $wp_locale_switcher */
global $wp_locale_switcher;
if ( ! $wp_locale_switcher ) {
return false;
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Basic Example