WordPress at a glance
action is not described

delete_widget action-hook . WP 4.4.0

Fires immediately after a widget has been marked for deletion.


add_action( 'delete_widget', 'action_function_name_7459', 10, 3 );
function action_function_name_7459( $widget_id, $sidebar_id, $id_base ){
	// action...
ID of the widget marked for deletion.
ID of the sidebar the widget was deleted from.
ID base for the widget.


Since 4.4.0 Introduced.

Where the hook is called

In file: /wp-admin/widgets.php
wp-admin/widgets.php 185
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.