filtrod 6.5.0
load_translation_file
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$file | string | Path to the translation file to load. |
$domain | string | The text domain. |
$locale | string | The locale. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_translation_file', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_translation_file', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii