do_action( 'switch_locale', string $locale )

Fires when the locale is switched.


Description


Parameters

$locale

(string) The new locale.


Top ↑

Source

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

View on Trac


Top ↑

Changelog

Version Description
4.7.0 Introduced.