wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



translation_file_format › Les Filtres WordPress

Depuis6.5.0
Dépréciéen/a
apply_filters( 'translation_file_format', 'php', $domain )
Paramètres: (2)
  • (string) $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
    Requis: Oui
  • (string) $domain The text domain.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the preferred file format for translation files.

Can be used to disable the use of PHP files for translations.





Source

$preferred_format = apply_filters( 'translation_file_format', 'php', $domain );