WP_Locale_Switcher::is_switched
Whether switch_to_locale() is in effect.
Method of the class: WP_Locale_Switcher{}
No Hooks.
Returns
true|false. True if the locale has been switched, false otherwise.
Usage
$WP_Locale_Switcher = new WP_Locale_Switcher(); $WP_Locale_Switcher->is_switched();
Changelog
| Since 4.7.0 | Introduced. |
WP_Locale_Switcher::is_switched() WP Locale Switcher::is switched code WP 6.9.1
public function is_switched() {
return ! empty( $this->stack );
}