Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: term_name

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
289
290 // Tag stuff
291
292 // Returns a single tag row (see tag_rows below)
293 // Note: this is also used in admin-ajax.php!
294 function _tag_row( $tag, $class = '' ) {
295           $count = number_format_i18n( $tag->count );
296           $count = ( $count > 0 ) ? "<a href='edit.php?tag=$tag->slug'>$count</a>" : $count;
297
298           $name = apply_filters( 'term_name', $tag->name );
299           $out = '';
300           $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>';
301           $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
302           $out .= '<td><strong><a class="row-title" href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '" title="' . attribute_escape(sprintf(__('Edit "%s"'), $name)) . '">' .
303                $name . '</a></td>';
304
305           $out .= "<td class='num'>$count</td>";
306           $out .= '</tr>';
307