Filters the file path for loading script translations for the given script handle and text domain.
$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.
// 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;
}
Chargement des actualités...