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