filtrod 2.8.0
upgrader_post_install
Opis — z kodu źródłowego
Filters the installation response after the installation has finished.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | bool | Installation response. |
$hook_extra | array | Extra arguments passed to hooked filters. |
$result | array | Installation result data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'upgrader_post_install', '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( 'upgrader_post_install', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii