filtrod 2.8.0
upgrader_clear_destination
Opis — z kodu źródłowego
Filters whether the upgrader cleared the destination.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$removed | true | \WP_Error | Whether the destination was cleared. True upon success, WP_Error on failure. |
$local_destination | string | The local package destination. |
$remote_destination | string | The remote package destination. |
$hook_extra | array | Extra arguments passed to hooked filters. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'upgrader_clear_destination', '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_clear_destination', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii