Filters the preferred file format for translation files. Can be used to disable the use of PHP files for translations.
'php', $domain
Sortie :
@param string $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'. @param string $domain The text domain.
// Modifier la valeur avec le filtre 'translation_file_format'
add_filter('translation_file_format', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre('php') {
// Modifier la valeur
return 'php';
}
Chargement des actualités...