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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
127 | check_admin_referer( 'edit-dashboard-widget_' . $_POST['widget_id'], 'dashboard-widget-nonce' ); |
128 | ob_start(); // hack - but the same hack wp-admin/widgets.php uses |
129 | wp_dashboard_trigger_widget_control( $_POST['widget_id'] ); |
130 | ob_end_clean(); |
131 | wp_redirect( remove_query_arg( 'edit' ) ); |
132 | exit; |
133 | } |
134 |
|
135 | /** This action is documented in wp-admin/includes/meta-boxes.php */ |
136 | do_action( 'do_meta_boxes', $screen->id, 'normal', '' ); |
137 |
|
138 | /** This action is documented in wp-admin/includes/meta-boxes.php */ |
139 | do_action( 'do_meta_boxes', $screen->id, 'side', '' ); |
140 | } |
141 |
|
142 | /** |
143 | * Adds a new dashboard widget. |
144 | * |
145 | * @since 2.7.0 |
146 | * |
147 | * @global array $wp_dashboard_control_callbacks |
148 | * |