Fires when the locale is switched.
Parameters
$locale
string- The new locale.
$user_id
false|int- User ID for context if available.
Source
do_action( 'switch_locale', $locale, $user_id );
Fires when the locale is switched.
$locale
string$user_id
false|intdo_action( 'switch_locale', $locale, $user_id );
You must log in before being able to contribute a note or feedback.
Basic example of the hook for below operations.