WP_Locale_Switcher::get_switched_locale(): string|false In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Returns the locale currently switched to. Return string|false Locale if the locale has been switched, false otherwise. Source public function get_switched_locale() { $entry = end( $this->stack ); if ( $entry ) { return $entry[0]; } return false; } View all references View on Trac View on GitHub Related Used byDescriptionWP_Locale_Switcher::filter_locale()wp-includes/class-wp-locale-switcher.phpFilters the locale of the WordPress installation. Changelog VersionDescription6.2.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.