Action hook 'delete_widget'

in WP Core File wp-admin/widgets-form.php at line 169

Description

Fires immediately after a widget has been marked for deletion.

Occurrences

Filename Line Number
wp-admin/widgets-form.php 169
wp-admin/includes/ajax-actions.php 2404
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php 413

Parameters

Type Name Description
string $widget_id ID of the widget marked for deletion.
string $sidebar_id ID of the sidebar the widget was deleted from.
string $id_base ID base for the widget.

PHP Doc

/**
		 * Fires immediately after a widget has been marked for deletion.
		 *
		 * @since 4.4.0
		 *
		 * @param string $widget_id  ID of the widget marked for deletion.
		 * @param string $sidebar_id ID of the sidebar the widget was deleted from.
		 * @param string $id_base    ID base for the widget.
		 */