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

This hook occurs 2 times in this file.

Line Code
226 </div>
227
228 <div id="major-publishing-actions">
229 <?php
230 /**
231  * Fires at the beginning of the publishing actions section of the Publish meta box.
232  *
233  * @since 2.7.0
234  */
235 do_action( 'post_submitbox_start' );
236 ?>
237 <div id="delete-action">
238 <?php
239 if ( current_user_can( "delete_post", $post->ID ) ) {
240      if ( !EMPTY_TRASH_DAYS )
241           $delete_text = __('Delete Permanently');
242      else
243           $delete_text = __('Move to Trash');
244      ?>
 
Line Code
812      <label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label>
813 </div>
814 </div>
815
816 </div>
817
818 <div id="major-publishing-actions">
819 <?php
820 /** This action is documented in wp-admin/includes/meta-boxes.php */
821 do_action( 'post_submitbox_start' );
822 ?>
823 <div id="delete-action">
824 <?php
825 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
826      <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
827 <?php } ?>
828 </div>
829
830 <div id="publishing-action">