Fires immediately after a widget has been marked for deletion.
$widget_idstring$sidebar_idstring$id_basestringwp-admin/includes/ajax-actions.php:2435wp_ajax_save_widget()wp-admin/widgets-form.php:169file scopewp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php:418WP_REST_Widgets_Controller::delete_item() * @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. */ do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); } $_POST['widget-id'] = $sidebar; foreach ( (array) $wp_registered_widget_updates as $name => $control ) { if ( $name !== $id_base || ! is_callable( $control['callback'] ) ) {Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.