Fires after a widget is deleted via the REST API.
$widget_idstring$sidebar_idstring$responseWP_REST_Response|WP_Error$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php:468WP_REST_Widgets_Controller::delete_item() * * @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 WP_REST_Response|WP_Error $response The response data, or WP_Error object on failure. * @param WP_REST_Request $request The request sent to the API. */ do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request ); return $response; } /** * Performs a permissions check for managing widgets.Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.