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
241                return ' ';
242      }
243
244      function column_name( $tag ) {
245           global $taxonomy, $tax, $post_type;
246
247           $default_term = get_option( 'default_' . $taxonomy );
248
249           $pad = str_repeat( '— ', max( 0, $this->level ) );
250           $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
251           $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' );
252           $edit_link = esc_url( get_edit_term_link( $tag->term_id, $taxonomy, $post_type ) );
253
254           $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />';
255
256           $actions = array();
257           if ( current_user_can( $tax->cap->edit_terms ) ) {
258                $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
259                $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick&nbsp;Edit' ) . '</a>';