Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: link_category

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

Line Code
42
43 </div>
44
45 <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br />
46 <?php _e('Category:') ?> <select name="cat_id">
47 <?php
48 $categories = get_categories('hide_empty=0');
49 foreach ($categories as $category) {
50 ?>
51 <option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->cat_name)); ?></option>
52 <?php
53 } // end foreach
54 ?>
55 </select></p>
56
57 <p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File &raquo;') ?>" /></p>
58 </form>
59
60 </div>