WordPress at Your Fingertips
action is not described

delete_widget action-hook . WP 4.4.0

Fires immediately after a widget has been marked for deletion.

Usage

add_action( 'delete_widget', 'action_function_name_3986', 10, 3 );
function action_function_name_3986( $widget_id, $sidebar_id, $id_base ){
	// action...
}
$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.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

In file: /wp-admin/widgets-form.php
delete_widget
wp-admin/widgets-form.php 169
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php 360
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );
wp-admin/includes/ajax-actions.php 2325
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );

Where in WP core the hook is used WordPress

Usage not found.