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 |
---|---|
158 | /** |
159 | * Fires immediately after a widget has been marked for deletion. |
160 | * |
161 | * @since 4.4.0 |
162 | * |
163 | * @param string $widget_id ID of the widget marked for deletion. |
164 | * @param string $sidebar_id ID of the sidebar the widget was deleted from. |
165 | * @param string $id_base ID base for the widget. |
166 | */ |
167 | do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); |
168 | } |
169 |
|
170 | $_POST['widget-id'] = $sidebar; |
171 |
|
172 | foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
173 | if ( $name != $id_base || !is_callable($control['callback']) ) |
174 | continue; |
175 |
|
176 | ob_start(); |