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
52
53 </div>
54
55 <p style="clear: both; margin-top: 1em;"><label for="cat_id"><?php _e('Now select a category you want to put these links in.') ?></label><br />
56 <?php _e('Category:') ?> <select name="cat_id" id="cat_id">
57 <?php
58 $categories = get_terms('link_category', 'get=all');
59 foreach ($categories as $category) {
60 ?>
61 <option value="<?php echo $category->term_id; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->name)); ?></option>
62 <?php
63 } // end foreach
64 ?>
65 </select></p>
66
67 <p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File') ?>" /></p>
68 </form>
69
70 </div>