load_script_translation_file

FILTER wp-includes\l10n.php (ligne 1322) github
Filters the file path for loading script translations for the given script handle and text domain.

Paramètres

Entrée :
$file, $handle, $domain
Sortie :
@param string|false $file   Path to the translation file to load. False if there isn't one.
@param string       $handle Name of the script to register a translation domain to.
@param string       $domain The text domain.

Utilisation

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

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

Actualités

Chargement des actualités...