WordPress at a glance
function is not described

WP_Locale_Switcher::init() public WP 4.7.0

Initializes the locale switcher.

Hooks into the 'locale' filter to change the locale on the fly.

{} It's a method of the class: WP_Locale_Switcher{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Locale_Switcher = new WP_Locale_Switcher();
$WP_Locale_Switcher->init();

Changelog

Since 4.7.0 Introduced.

Code of WP_Locale_Switcher::init() WP 5.5.3

<?php
public function init() {
	add_filter( 'locale', array( $this, 'filter_locale' ) );
}