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 |
---|---|
51 | $category->count = number_format_i18n( $category->count ); |
52 | $posts_count = ( $category->count > 0 ) ? "<a href='edit.php?cat=$category->term_id'>$category->count</a>" : $category->count; |
53 | $output = "<tr id='cat-$category->term_id'$class> |
54 | <th scope='row' style='text-align: center'>$category->term_id</th> |
55 | <td>" . ( $name_override ? $name_override : $pad . ' ' . $category->name ) . "</td> |
56 | <td>$category->description</td> |
57 | <td align='center'>$posts_count</td> |
58 | <td>$edit</td>\n\t</tr>\n"; |
59 |
|
60 | return apply_filters('cat_row', $output); |
61 | } |
62 |
|
63 | function checked( $checked, $current) { |
64 | if ( $checked == $current) |
65 | echo ' checked="checked"'; |
66 | } |
67 |
|
68 | // TODO: Remove? |
69 | function documentation_link( $for ) { |