filtrod 5.0.2
load_script_translation_file
Opis — z kodu źródłowego
Filters the file path for loading script translations for the given script handle and text domain.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$file | string | false | Path to the translation file to load. False if there isn't one. |
$handle | string | Name of the script to register a translation domain to. |
$domain | string | The text domain. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_script_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_script_translation_file', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii