Source View: {$taxonomy}_row_actions

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
256           if ( current_user_can( $tax->cap->edit_terms ) ) {
257                $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
258                $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick&nbsp;Edit' ) . '</a>';
259           }
260           if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
261                $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
262           $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>';
263
264           $actions = apply_filters( 'tag_row_actions', $actions, $tag );
265           $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );
266
267           $out .= $this->row_actions( $actions );
268           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
269           $out .= '<div class="name">' . $qe_data->name . '</div>';
270           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
271           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
272
273           return $out;
274      }