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
184 </div><?php // /misc-pub-section ?>
185 <?php endif; ?>
186
187 <?php do_action('post_submitbox_misc_actions'); ?>
188 </div>
189 <div class="clear"></div>
190 </div>
191
192 <div id="major-publishing-actions">
193 <?php do_action('post_submitbox_start'); ?>
194 <div id="delete-action">
195 <?php
196 if ( current_user_can( "delete_post", $post->ID ) ) {
197      if ( !EMPTY_TRASH_DAYS )
198           $delete_text = __('Delete Permanently');
199      else
200           $delete_text = __('Move to Trash');
201      ?>
202 <a class="submitdelete deletion" href="<?php echo get_delete_post_link($post->ID); ?>"><?php echo $delete_text; ?></a><?php
 
Line Code
593 <div id="misc-publishing-actions">
594 <div class="misc-pub-section misc-pub-section-last">
595      <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>
596 </div>
597 </div>
598
599 </div>
600
601 <div id="major-publishing-actions">
602 <?php do_action('post_submitbox_start'); ?>
603 <div id="delete-action">
604 <?php
605 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
606      <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>
607 <?php } ?>
608 </div>
609
610 <div id="publishing-action">
611 <?php if ( !empty($link->link_id) ) { ?>