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 |
---|---|
232 |
|
233 | // Tag stuff |
234 |
|
235 | // Returns a single tag row (see tag_rows below) |
236 | // Note: this is also used in admin-ajax.php! |
237 | function _tag_row( $tag, $class = '' ) { |
238 | $count = number_format_i18n( $tag->count ); |
239 | $count = ( $count > 0 ) ? "<a href='edit.php?tag=$tag->slug'>$count</a>" : $count; |
240 |
|
241 | $name = apply_filters( 'term_name', $tag->name ); |
242 | $out = ''; |
243 | $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>'; |
244 | $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>'; |
245 | $out .= '<td><strong><a class="row-title" href="edit-tags.php?action=edit&tag_ID=' . $tag->term_id . '" title="' . attribute_escape(sprintf(__('Edit "%s"'), $name)) . '">' . |
246 | $name . '</a></td>'; |
247 |
|
248 | $out .= "<td class='num'>$count</td>"; |
249 | $out .= '</tr>'; |
250 |
|