load_translation_file

FILTER wp-includes\l10n.php (ligne 843) github
Filters the file path for loading translations for the given text domain. Similar to the {@see 'load_textdomain_mofile'} filter with the difference that the file path could be for an MO or PHP file.

Paramètres

Entrée :
$file, $domain, $locale
Sortie :
@param string $file   Path to the translation file to load.
@param string $domain The text domain.
@param string $locale The locale.

Utilisation

// Modifier la valeur avec le filtre 'load_translation_file'
add_filter('load_translation_file', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($file) {
    // Modifier la valeur
    return $file;
}

Actualités

Chargement des actualités...