apply_filters( ‘load_translation_file’, string $file, string $domain, string $locale )

In this article

Filters the file path for loading translations for the given text domain.

Description

Similar to the ‘load_textdomain_mofile’ filter with the difference that the file path could be for an MO or PHP file.

Parameters

$filestring
Path to the translation file to load.
$domainstring
The text domain.
$localestring
The locale.

Source

$file = (string) apply_filters( 'load_translation_file', $file, $domain, $locale );

Changelog

VersionDescription
6.6.0Added the $locale parameter.
6.5.0Introduced.

User Contributed Notes

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