is_locale_switched

Advertisement

Summery Summery

Whether switch_to_locale() is in effect.

Syntax Syntax

is_locale_switched()

Return Return

(bool) True if the locale has been switched, false otherwise.

Source Source

File: wp-includes/l10n.php

 *
 * @return bool Whether locale is RTL.
 */
function is_rtl() {
	global $wp_locale;
	if ( ! ( $wp_locale instanceof WP_Locale ) ) {

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply