Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: do_meta_boxes

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
81           ob_end_clean();
82           wp_redirect( remove_query_arg( 'edit' ) );
83           exit;
84      }
85
86      if ( $update )
87           update_option( 'dashboard_widget_options', $widget_options );
88
89      /** This action is documented in wp-admin/edit-form-advanced.php */
90      do_action('do_meta_boxes', $screen->id, 'normal', '');
91      /** This action is documented in wp-admin/edit-form-advanced.php */
92      do_action('do_meta_boxes', $screen->id, 'side', '');
93 }
94
95 function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null ) {
96      $screen = get_current_screen();
97      global $wp_dashboard_control_callbacks;
98
99      if ( $control_callback && current_user_can( 'edit_dashboard' ) && is_callable( $control_callback ) ) {
100           $wp_dashboard_control_callbacks[$widget_id] = $control_callback;
101           if ( isset( $_GET['edit'] ) && $widget_id == $_GET['edit'] ) {