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