filtrod 3.7.0
upgrader_pre_download
Opis — z kodu źródłowego
Filters whether to return the package.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$reply | bool | Whether to bail without returning the package. Default false. |
$package | string | The package file name. |
$upgrader | \WP_Upgrader | The WP_Upgrader instance. |
$hook_extra | array | Extra arguments passed to hooked filters. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'upgrader_pre_download', '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( 'upgrader_pre_download', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii