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 |
---|---|
283 | /** |
284 | * Fires at the beginning of the publishing actions section of the Publish meta box. |
285 | * |
286 | * @since 2.7.0 |
287 | * @since 4.9.0 Added the `$post` parameter. |
288 | * |
289 | * @param WP_Post|null $post WP_Post object for the current post on Edit Post screen, |
290 | * null on Edit Link screen. |
291 | */ |
292 | do_action( 'post_submitbox_start', $post ); |
293 | ?> |
294 | <div id="delete-action"> |
295 | <?php |
296 | if ( current_user_can( 'delete_post', $post->ID ) ) { |
297 | if ( ! EMPTY_TRASH_DAYS ) { |
298 | $delete_text = __( 'Delete Permanently' ); |
299 | } else { |
300 | $delete_text = __( 'Move to Trash' ); |
301 | } |
Line | Code |
1015 | <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> |
1016 | </div> |
1017 | </div> |
1018 |
|
1019 | </div> |
1020 |
|
1021 | <div id="major-publishing-actions"> |
1022 | <?php |
1023 | /** This action is documented in wp-admin/includes/meta-boxes.php */ |
1024 | do_action( 'post_submitbox_start', null ); |
1025 | ?> |
1026 | <div id="delete-action"> |
1027 | <?php |
1028 | if ( ! empty( $_GET['action'] ) && 'edit' == $_GET['action'] && current_user_can( 'manage_links' ) ) { |
1029 | ?> |
1030 | <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> |
1031 | <?php } ?> |
1032 | </div> |
1033 |
|