WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )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.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 198 | </div><?php // /misc-pub-section ?> |
| 199 | <?php endif; ?> |
| 200 | |
| 201 | <?php do_action('post_submitbox_misc_actions'); ?> |
| 202 | </div> |
| 203 | <div class="clear"></div> |
| 204 | </div> |
| 205 | |
| 206 | <div id="major-publishing-actions"> |
| 207 | <?php do_action('post_submitbox_start'); ?> |
| 208 | <div id="delete-action"> |
| 209 | <?php |
| 210 | if ( current_user_can( "delete_post", $post->ID ) ) { |
| 211 | if ( !EMPTY_TRASH_DAYS ) |
| 212 | $delete_text = __('Delete Permanently'); |
| 213 | else |
| 214 | $delete_text = __('Move to Trash'); |
| 215 | ?> |
| 216 | <a class="submitdelete deletion" href="<?php echo get_delete_post_link($post->ID); ?>"><?php echo $delete_text; ?></a><?php |
| Line | Code |
| 704 | <div id="misc-publishing-actions"> |
| 705 | <div class="misc-pub-section misc-pub-private"> |
| 706 | <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> |
| 707 | </div> |
| 708 | </div> |
| 709 | |
| 710 | </div> |
| 711 | |
| 712 | <div id="major-publishing-actions"> |
| 713 | <?php do_action('post_submitbox_start'); ?> |
| 714 | <div id="delete-action"> |
| 715 | <?php |
| 716 | if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?> |
| 717 | <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&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> |
| 718 | <?php } ?> |
| 719 | </div> |
| 720 | |
| 721 | <div id="publishing-action"> |
| 722 | <?php if ( !empty($link->link_id) ) { ?> |