akcjaod 5.5.0
upgrader_overwrote_package
Opis — z kodu źródłowego
Fires when the upgrader has successfully overwritten a currently installed plugin or theme with an uploaded zip package.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$package | string | The package file. |
$data | array | The new plugin or theme data. |
$package_type | string | The package type ('plugin' or 'theme'). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'upgrader_overwrote_package', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'upgrader_overwrote_package', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii