Fires when the locale is switched to or restored.
$locale
Sortie :
@param string $locale The new locale.
// Ajouter une fonction au hook action 'change_locale'
add_action('change_locale', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($locale) {
// Votre code ici
error_log('Hook change_locale déclenché');
}
Chargement des actualités...