Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_submitbox_start

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
206      <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
207 </div><?php // /misc-pub-section
208 endif; ?>
209
210 </div>
211 <div class="clear"></div>
212 </div>
213
214 <div id="major-publishing-actions">
215 <?php do_action('post_submitbox_start'); ?>
216 <div id="delete-action">
217 <?php
218 if ( ( 'edit' == $action ) && current_user_can('delete_page', $post->ID) ) { ?>
219 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("page.php?action=delete&amp;post=$post->ID", 'delete-page_' . $post->ID); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
220 <?php } ?>
221 </div>
222
223 <div id="publishing-action">
224 <?php