filtrod 5.0.2
load_script_translations
Opis — z kodu źródłowego
Filters script translations for the given file, script handle and text domain.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$translations | string | JSON-encoded translation data. |
$file | string | Path to the translation file that was loaded. |
$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_translations', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_script_translations', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii