Description
Filters the file path for loading translations for the given text domain. Similar to the {@see 'load_textdomain_mofile'} filter with the difference that the file path could be for an MO or PHP file.
Occurrences
Filename | Line Number |
---|---|
wp-includes/l10n.php | 842 |
Parameters
Type | Name | Description |
---|---|---|
string | $file | Path to the translation file to load. |
string | $domain | The text domain. |
string | $locale | The locale. |
PHP Doc
/**
* Filters the file path for loading translations for the given text domain.
*
* Similar to the {@see 'load_textdomain_mofile'} filter with the difference that
* the file path could be for an MO or PHP file.
*
* @since 6.5.0
* @since 6.6.0 Added the `$locale` parameter.
*
* @param string $file Path to the translation file to load.
* @param string $domain The text domain.
* @param string $locale The locale.
*/