do_action( 'change_locale', string $locale )

Fires when the locale is switched to or restored.


Parameters

$locale string
The new locale.

Top ↑

Source

File: wp-includes/class-wp-locale-switcher.php. View all references

do_action( 'change_locale', $locale );


Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

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