wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_delete_widget › WordPress Action Hooks

Since5.8.0
Deprecatedn/a
do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request )
Parameters: (4)
  • (string) $widget_id ID of the widget marked for deletion.
    Required: Yes
  • (string) $sidebar_id ID of the sidebar the widget was deleted from.
    Required: Yes
  • (WP_REST_Response|WP_Error) $response The response data, or WP_Error object on failure.
    Required: Yes
  • (WP_REST_Request) $request The request sent to the API.
    Required: Yes
Defined at:
Codex:

Fires after a widget is deleted via the REST API.





Source

do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request );