Uses
Uses | Description |
---|---|
wp-includes/plugin.php: add_filter() | Hook a function or method to a specific filter action. |
Initializes the locale switcher.
Hooks into the ‘locale’ filter to change the locale on the fly.
File: wp-includes/class-wp-locale-switcher.php
public function init() { add_filter( 'locale', array( $this, 'filter_locale' ) ); }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale_switcher/init