Filters the locale for the current request prior to the default determination process. Using this filter allows to override the default logic, effectively short-circuiting the function.
null
Sortie :
@param string|null $locale The locale to return and short-circuit. Default null.
// Modifier la valeur avec le filtre 'pre_determine_locale'
add_filter('pre_determine_locale', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...