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 |
|---|---|
| 86 | |
| 87 | $category->count = number_format_i18n( $category->count ); |
| 88 | $count = ( $category->count > 0 ) ? "<a href='link-manager.php?cat_id=$category->term_id'>$category->count</a>" : $category->count; |
| 89 | $output = "<tr id='link-cat-$category->term_id'$class>" . |
| 90 | '<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' . |
| 91 | "<td>$edit</td> |
| 92 | <td>$category->description</td> |
| 93 | <td class='num'>$count</td></tr>"; |
| 94 | |
| 95 | return apply_filters( 'link_cat_row', $output ); |
| 96 | } |
| 97 | |
| 98 | function checked( $checked, $current) { |
| 99 | if ( $checked == $current) |
| 100 | echo ' checked="checked"'; |
| 101 | } |
| 102 | |
| 103 | function selected( $selected, $current) { |
| 104 | if ( $selected == $current) |