Fires after a widget is deleted via the REST API.
Parameters
$widget_idstring- ID of the widget marked for deletion.
$sidebar_idstring- ID of the sidebar the widget was deleted from.
$responseWP_REST_Response|WP_Error- The response data, or WP_Error object on failure.
$requestWP_REST_Request- The request sent to the API.
Source
do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request );
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.