WP_Locale_Switcher::is_switched

Advertisement

Summery Summery

Whether switch_to_locale() is in effect.

Syntax Syntax

WP_Locale_Switcher::is_switched()

Return Return

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

Source Source

File: wp-includes/class-wp-locale-switcher.php

	public function is_switched() {
		return ! empty( $this->locales );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.