wpseek.com
A WordPress-centric search engine for devs and theme authors



translation_file_format › WordPress Filter Hooks

Since6.5.0
Deprecatedn/a
apply_filters( 'translation_file_format', 'php', $domain )
Parameters: (2)
  • (string) $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
    Required: Yes
  • (string) $domain The text domain.
    Required: Yes
Defined at:
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 );