WP HOOKS
akcjaod 4.4.0

delete_widget

Args 3Plik wp-admin/widgets-form.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after a widget has been marked for deletion.

Parametry

ParametrTypOpis
$widget_idstringID of the widget marked for deletion.
$sidebar_idstringID of the sidebar the widget was deleted from.
$id_basestringID 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
}

Popularne w tej kategorii