Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: submitpost_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
536 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
537 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
538
539 <?php echo $form_extra ?>
540
541 <div id="poststuff" class="metabox-holder">
542
543 <div id="side-info-column" class="inner-sidebar">
544
545 <?php do_action('submitpost_box'); ?>
546
547 <?php $side_meta_boxes = do_meta_boxes('post', 'side', $post); ?>
548 </div>
549
550 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
551 <div id="post-body-content" class="has-sidebar-content">
552 <div id="titlediv">
553 <div id="titlewrap">
554      <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" />