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
121 <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post->post_type) ?>" />
122 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
123 <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
124 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
125
126 <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
127
128 <div id="side-info-column" class="inner-sidebar">
129 <?php
130 do_action('submitpage_box');
131 $side_meta_boxes = do_meta_boxes('page', 'side', $post); ?>
132 </div>
133
134 <div id="post-body">
135 <div id="post-body-content">
136 <div id="titlediv">
137 <div id="titlewrap">
138      <label class="screen-reader-text" for="title"><?php _e('Title') ?></label>
139      <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />