Fires when the locale is switched.
Parameters
$localestring- The new locale.
$user_idfalse|int- User ID for context if available.
Source
do_action( 'switch_locale', $locale, $user_id );
Fires when the locale is switched.
$localestring$user_idfalse|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.