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

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.

Source

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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