is_locale_switched

Whether switch_to_locale() is in effect.

Description

is_locale_switched(); 

Usage

  1. if ( !function_exists( 'is_locale_switched' ) ) { 
  2. require_once ABSPATH . WPINC . '/l10n.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_locale_switched(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/l10n.php  
  1. function is_locale_switched() { 
  2. /** @var WP_Locale_Switcher $wp_locale_switcher */ 
  3. global $wp_locale_switcher; 
  4.  
  5. return $wp_locale_switcher->is_switched();