apply_filters( ‘translation_file_format’, string $preferred_format, string $domain )

In this article

Filters the preferred file format for translation files.

Description

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

Parameters

$preferred_formatstring
Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
$domainstring
The text domain.

Source

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.