WP_Locale_Switcher::init

Advertisement

Summery Summery

Initializes the locale switcher.

Syntax Syntax

WP_Locale_Switcher::init()

Description Description

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply