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 |
---|---|
663 | case 'cb': |
664 | $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>'; |
665 | break; |
666 | case 'name': |
667 | $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr(sprintf(__('Edit “%s”'), $name)) . '">' . $name . '</a></strong><br />'; |
668 | $actions = array(); |
669 | $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; |
670 | $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>'; |
671 | $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url("edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "'>" . __('Delete') . "</a>"; |
672 | $actions = apply_filters('tag_row_actions', $actions, $tag); |
673 | $action_count = count($actions); |
674 | $i = 0; |
675 | $out .= '<div class="row-actions">'; |
676 | foreach ( $actions as $action => $link ) { |
677 | ++$i; |
678 | ( $i == $action_count ) ? $sep = '' : $sep = ' | '; |
679 | $out .= "<span class='$action'>$link$sep</span>"; |
680 | } |
681 | $out .= '</div>'; |