delete_widget

最后更新于:2021-11-26 06:48:15

do_action( ‘delete_widget’, string $widget_id, string $sidebar_id, string $id_base )

Fires immediately after a widget has been marked for deletion.

参数

$widget_id

(string)
ID of the widget marked for deletion.

$sidebar_id

(string)
ID of the sidebar the widget was deleted from.

$id_base

(string)
ID base for the widget.

源文件

文件: gc-admin/widgets-form.php

View on Trac