wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_delete_widget › WordPress Action Hooks

Da5.8.0
Deprecaton/a
do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request )
Parametri: (4)
  • (string) $widget_id ID of the widget marked for deletion.
    Richiesto:
  • (string) $sidebar_id ID of the sidebar the widget was deleted from.
    Richiesto:
  • (WP_REST_Response|WP_Error) $response The response data, or WP_Error object on failure.
    Richiesto:
  • (WP_REST_Request) $request The request sent to the API.
    Richiesto:
Definito a:
Codex:

Fires after a widget is deleted via the REST API.





Sorgenti

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