A WordPress-centric search engine for devs and theme authors



delete_widget ›

Since4.4.0
Deprecatedn/a
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base )
Parameters: (3)
  • (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
  • (string) $id_base ID base for the widget.
    Required: Yes
Defined at:
Codex:

Fires immediately after a widget has been marked for deletion.





Source

do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );