wpseek.com
WordPress开发者和主题制作者的搜索引擎



translation_file_format › WordPress过滤钩子

Since6.5.0
已弃用n/a
apply_filters( 'translation_file_format', 'php', $domain )
参数: (2)
  • (string) $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
    Required: Yes
  • (string) $domain The text domain.
    Required: Yes
定义在:
文档:

Filters the preferred file format for translation files.

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





源码

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