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 3 times in this file.

Line Code
159           add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core');
160 }
161
162 if ( post_type_supports($post_type, 'revisions') && 0 < $post_ID && wp_get_post_revisions( $post_ID ) )
163      add_meta_box('revisionsdiv', __('Revisions'), 'post_revisions_meta_box', null, 'normal', 'core');
164
165 do_action('add_meta_boxes', $post_type, $post);
166 do_action('add_meta_boxes_' . $post_type, $post);
167
168 do_action('do_meta_boxes', $post_type, 'normal', $post);
169 do_action('do_meta_boxes', $post_type, 'advanced', $post);
170 do_action('do_meta_boxes', $post_type, 'side', $post);
171
172 add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
173
174 if ( 'post' == $post_type ) {
175      $customize_display = '<p>' . __('The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.') . '</p>';
176
177      get_current_screen()->add_help_tab( array(
178           'id'      => 'customize-display',
179           'title'   => __('Customizing This Display'),