filtrod 5.0.2
load_script_textdomain_relative_path
Opis — z kodu źródłowego
Filters the relative path of scripts used for finding translation files.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$relative | string | false | The relative path of the script. False if it could not be determined. |
$src | string | The full source URL of the script. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_script_textdomain_relative_path', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_script_textdomain_relative_path', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii