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 3 times in this file.
Line | Code |
---|---|
281 | * |
282 | * Fires once for each of the default meta box contexts: normal, advanced, and side. |
283 | * |
284 | * @since 3.0.0 |
285 | * |
286 | * @param string $post_type Post type of the post. |
287 | * @param string $context string Meta box context. |
288 | * @param WP_Post $post Post object. |
289 | */ |
290 | do_action( 'do_meta_boxes', $post_type, 'normal', $post ); |
291 | /** This action is documented in wp-admin/edit-form-advanced.php */ |
292 | do_action( 'do_meta_boxes', $post_type, 'advanced', $post ); |
293 | /** This action is documented in wp-admin/edit-form-advanced.php */ |
294 | do_action( 'do_meta_boxes', $post_type, 'side', $post ); |
295 |
|
296 | add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); |
297 |
|
298 | if ( 'post' == $post_type ) { |
299 | $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>'; |
300 |
|
301 | get_current_screen()->add_help_tab( array( |
302 | 'id' => 'customize-display', |
303 | 'title' => __('Customizing This Display'), |