WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 176 | /** |
| 177 | * Fires immediately after a widget has been marked for deletion. |
| 178 | * |
| 179 | * @since 4.4.0 |
| 180 | * |
| 181 | * @param string $widget_id ID of the widget marked for deletion. |
| 182 | * @param string $sidebar_id ID of the sidebar the widget was deleted from. |
| 183 | * @param string $id_base ID base for the widget. |
| 184 | */ |
| 185 | do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); |
| 186 | } |
| 187 | |
| 188 | $_POST['widget-id'] = $sidebar; |
| 189 | |
| 190 | foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 191 | if ( $name != $id_base || ! is_callable( $control['callback'] ) ) { |
| 192 | continue; |
| 193 | } |
| 194 | |