akcjaod 4.4.0
deleted_plugin
Opis — z kodu źródłowego
Fires immediately after a plugin deletion attempt.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$plugin_file | string | Path to the plugin file relative to the plugins directory. |
$deleted | bool | Whether the plugin deletion was successful. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'deleted_plugin', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'deleted_plugin', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii