Initializes the locale switcher.

Description Description

Hooks into the ‘locale’ filter to change the locale on the fly.

Top ↑

Source Source

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

	public function init() {
		add_filter( 'locale', array( $this, 'filter_locale' ) );

Top ↑

Changelog Changelog

Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.