WordPress开发者和主题制作者的搜索引擎



delete_widget ›

Since4.4.0
已弃用n/a
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base )
参数: (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
定义在:
文档:

Fires immediately after a widget has been marked for deletion.





源码

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