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 |
|---|---|
| 22 | $link_cat = absint( (string)urldecode($link_cat) ); |
| 23 | } |
| 24 | |
| 25 | echo '<?xml version="1.0"?'.">\n"; |
| 26 | ?> |
| 27 | <opml version="1.0"> |
| 28 | <head> |
| 29 | <title><?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?></title> |
| 30 | <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated> |
| 31 | <?php do_action('opml_head'); ?> |
| 32 | </head> |
| 33 | <body> |
| 34 | <?php |
| 35 | if ( empty($link_cat) ) |
| 36 | $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0)); |
| 37 | else |
| 38 | $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat)); |
| 39 | |
| 40 | foreach ( (array)$cats as $cat ) : |