Uma área de pesquisa sobre o WordPress para devs e autores do tema



delete_widget ›

Desde4.4.0
Obsoleton/a
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base )
Parâmetros: (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
Definido em:
Codex:

Fires immediately after a widget has been marked for deletion.





Fonte

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