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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
161 <ul>
162 <?php if ($post_ID): ?>
163 <li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li>
164 <?php endif; ?>
165 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
166 <li><a href="edit-pages.php"><?php _e('Manage All Pages') ?></a></li>
167 <?php do_action('page_relatedlinks_list'); ?>
168 </ul>
169 </div>
170 <?php do_action('submitpage_box'); ?>
171 </div>
173 <div id="post-body">
174 <div id="titlediv">
175 <h3><label for="title"><?php _e('Title') ?></label></h3>
176 <div id="titlewrap">
177   <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
178 </div>
179 <div class="inside">