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
221 </div>
222
223 <div id="major-publishing-actions">
224 <?php
225 /**
226  * Fires at the beginning of the publishing actions section of the Publish meta box.
227  *
228  * @since 2.7.0
229  */
230 do_action( 'post_submitbox_start' );
231 ?>
232 <div id="delete-action">
233 <?php
234 if ( current_user_can( "delete_post", $post->ID ) ) {
235      if ( !EMPTY_TRASH_DAYS )
236           $delete_text = __('Delete Permanently');
237      else
238           $delete_text = __('Move to Trash');
239      ?>
 
Line Code
789      <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>
790 </div>
791 </div>
792
793 </div>
794
795 <div id="major-publishing-actions">
796 <?php
797 /** This action is documented in wp-admin/includes/meta-boxes.php */
798 do_action( 'post_submitbox_start' );
799 ?>
800 <div id="delete-action">
801 <?php
802 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
803      <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>
804 <?php } ?>
805 </div>
806
807 <div id="publishing-action">