pre_determine_locale

FILTER wp-includes\l10n.php (ligne 134) github
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.

Paramètres

Entrée :
null
Sortie :
@param string|null $locale The locale to return and short-circuit. Default null.

Utilisation

// 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;
}

Actualités

Chargement des actualités...