Filters the preferred file format for translation files.
Description
Can be used to disable the use of PHP files for translations.
Parameters
$preferred_format
string- Preferred file format. Possible values:
'php'
,'mo'
. Default:'php'
. $domain
string- The text domain.
Source
$preferred_format = apply_filters( 'translation_file_format', 'php', $domain );
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.