do_action( ‘change_locale’, string $locale )

In this article

Fires when the locale is switched to or restored.

Parameters

$localestring
The new locale.

Source

do_action( 'change_locale', $locale );

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

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