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.
| Line | Code |
|---|---|
| 90 | $select_order .= "</select>\n"; |
| 91 | |
| 92 | printf(__('Currently showing %1$s links ordered by %2$s'), $select_cat, $select_order); |
| 93 | ?> |
| 94 | <input type="submit" name="action" value="<?php _e('Update »') ?>" /></p> |
| 95 | </form> |
| 96 | <?php |
| 97 | $link_columns = array( |
| 98 | 'name' => '<th width="15%">' . __('Name') . '</th>', |
| 99 | 'url' => '<th>' . __('URL') . '</th>', |
| 100 | 'categories' => '<th>' . __('Categories') . '</th>', |
| 101 | 'rel' => '<th style="text-align: center">' . __('rel') . '</th>', |
| 102 | 'visible' => '<th style="text-align: center">' . __('Visible') . '</th>', |
| 103 | 'action' => '<th colspan="2" style="text-align: center">' . __('Action') . '</th>', |
| 104 | ); |
| 105 | $link_columns = apply_filters('manage_link_columns', $link_columns); |
| 106 | ?> |
| 107 | |
| 108 | <?php |
| 109 | if ( 'all' == $cat_id ) |
| 110 | $cat_id = ''; |
| 111 | $links = get_bookmarks( "category=$cat_id&hide_invisible=0&orderby=$sqlorderby&hide_empty=0" ); |
| 112 | if ( $links ) { |
| 113 | ?> |
| 114 | |
| 115 | <form id="links" method="post" action="link.php"> |
| 116 | <?php wp_nonce_field('bulk-bookmarks') ?> |
| 117 | <input type="hidden" name="link_id" value="" /> |
| 118 | <input type="hidden" name="action" value="" /> |
| 119 | <input type="hidden" name="order_by" value="<?php echo attribute_escape($order_by); ?>" /> |
| 120 | <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" /> |