do_action( 'delete_widget', string $widget_id, string $sidebar_id, string $id_base )

Fires immediately after a widget has been marked for deletion.

Parameters

$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.

Source

File: wp-admin/widgets-form.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_widget