do_action( 'change_locale', string $locale )

Fires when the locale is switched to or restored.


Parameters

$locale

(string) The new locale.


Source

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

View on GitHub



Changelog

Changelog
Version Description
WP-4.7.0 Introduced.