is_locale_switched
Whether switch_to_locale() is in effect.
Description
is_locale_switched();
Usage
if ( !function_exists( 'is_locale_switched' ) ) { require_once ABSPATH . WPINC . '/l10n.php'; } // NOTICE! Understand what this does before running. $result = is_locale_switched();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/l10n.php
- function is_locale_switched() {
- /** @var WP_Locale_Switcher $wp_locale_switcher */
- global $wp_locale_switcher;
- return $wp_locale_switcher->is_switched();
- }