akcjaod 4.4.0
delete_widget
Opis — z kodu źródłowego
Fires immediately after a widget has been marked for deletion.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$widget_id | string | ID of the widget marked for deletion. |
$sidebar_id | string | ID of the sidebar the widget was deleted from. |
$id_base | string | ID base for the widget. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'delete_widget', '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( 'delete_widget', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii