wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



translation_file_format › WordPress Filter Hooks

Seit6.5.0
Veraltetn/v
apply_filters( 'translation_file_format', 'php', $domain )
Parameter: (2)
  • (string) $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
    Erforderlich: Ja
  • (string) $domain The text domain.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the preferred file format for translation files.

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





Quellcode

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