wpseek.com
A WordPress-centric search engine for devs and theme authors



load_translation_file › WordPress Filter Hooks

Since6.6.0
Deprecatedn/a
apply_filters( 'load_translation_file', $file, $domain, $locale )
Parameters: (3)
  • () file Path to the translation file to load.
    Required: Yes
  • () domain The text domain.
    Required: Yes
  • () locale The locale.
    Required: Yes
Defined at:
Codex:

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.




Source

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