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 |
|---|---|
| 236 | </div> |
| 237 | |
| 238 | <div id="major-publishing-actions"> |
| 239 | <?php |
| 240 | /** |
| 241 | * Fires at the beginning of the publishing actions section of the Publish meta box. |
| 242 | * |
| 243 | * @since 2.7.0 |
| 244 | */ |
| 245 | do_action( 'post_submitbox_start' ); |
| 246 | ?> |
| 247 | <div id="delete-action"> |
| 248 | <?php |
| 249 | if ( current_user_can( "delete_post", $post->ID ) ) { |
| 250 | if ( !EMPTY_TRASH_DAYS ) |
| 251 | $delete_text = __('Delete Permanently'); |
| 252 | else |
| 253 | $delete_text = __('Move to Trash'); |
| 254 | ?> |
| Line | Code |
| 874 | <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> |
| 875 | </div> |
| 876 | </div> |
| 877 | |
| 878 | </div> |
| 879 | |
| 880 | <div id="major-publishing-actions"> |
| 881 | <?php |
| 882 | /** This action is documented in wp-admin/includes/meta-boxes.php */ |
| 883 | do_action( 'post_submitbox_start' ); |
| 884 | ?> |
| 885 | <div id="delete-action"> |
| 886 | <?php |
| 887 | if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?> |
| 888 | <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> |
| 889 | <?php } ?> |
| 890 | </div> |
| 891 | |
| 892 | <div id="publishing-action"> |