do_action( 'rest_delete_widget', string $widget_id, string $sidebar_id, WP_REST_Response $response, WP_REST_Request $request )

Fires after a widget is deleted via the REST API.

Parameters Parameters


(string) ID of the widget marked for deletion.


(string) ID of the sidebar the widget was deleted from.


(WP_REST_Response) The response data.


(WP_REST_Request) The request sent to the API.

Top ↑

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.