Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: submitpage_box

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

Line Code
421 <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post->post_type) ?>" />
422 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
423 <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
424 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
425
426 <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
427
428 <div id="side-info-column" class="inner-sidebar">
429 <?php
430 do_action('submitpage_box');
431 $side_meta_boxes = do_meta_boxes('page', 'side', $post); ?>
432 </div>
433
434 <div id="post-body">
435 <div id="post-body-content">
436 <div id="titlediv">
437 <div id="titlewrap">
438      <label class="screen-reader-text" for="title"><?php _e('Title') ?></label>
439      <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />