Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: submitlink_box

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
92 <div id="publishing-action">
93 <?php if ( !empty($link->link_id) ) { ?>
94      <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />
95 <?php } else { ?>
96      <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />
97 <?php } ?>
98 </div>
99 <div class="clear"></div>
100 </div>
101 <?php do_action('submitlink_box'); ?>
102 <div class="clear"></div>
103 </div>
104 <?php
105 }
106 add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core');
107
108 /**
109  * Display link categories form fields.
110  *
 
Line Code
357 wp_nonce_field( $nonce_action );
358 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
359 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
360
361 <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
362
363 <div id="side-info-column" class="inner-sidebar">
364 <?php
365
366 do_action('submitlink_box');
367 $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
368
369 ?>
370 </div>
371
372 <div id="post-body">
373 <div id="post-body-content">
374 <div id="namediv" class="stuffbox">
375 <h3><label for="link_name"><?php _e('Name') ?></label></h3>