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
632  * @param unknown_type $tag
633  * @param unknown_type $class
634  * @return unknown
635  */
636 function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) {
637           $count = number_format_i18n( $tag->count );
638           $tagsel = ($taxonomy == 'post_tag' ? 'tag' : $taxonomy);
639           $count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug'>$count</a>" : $count;
640
641           $name = apply_filters( 'term_name', $tag->name );
642           $qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');
643           $edit_link = "edit-tags.php?action=edit&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id";
644           $out = '';
645           $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>';
646           $columns = get_column_headers('edit-tags');
647           $hidden = get_hidden_columns('edit-tags');
648           foreach ( $columns as $column_name => $column_display_name ) {
649                $class = "class=\"$column_name column-$column_name\"";
650