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 |
|---|---|
| 446 | $actions = array(); |
| 447 | if ( current_user_can($tax->cap->edit_terms) ) { |
| 448 | $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; |
| 449 | $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>'; |
| 450 | } |
| 451 | if ( current_user_can($tax->cap->delete_terms) && $tag->term_id != $default_term ) |
| 452 | $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>"; |
| 453 | |
| 454 | $actions = apply_filters('tag_row_actions', $actions, $tag); |
| 455 | $actions = apply_filters("${taxonomy}_row_actions", $actions, $tag); |
| 456 | |
| 457 | $action_count = count($actions); |
| 458 | $i = 0; |
| 459 | $out .= '<div class="row-actions">'; |
| 460 | foreach ( $actions as $action => $link ) { |
| 461 | ++$i; |
| 462 | ( $i == $action_count ) ? $sep = '' : $sep = ' | '; |
| 463 | $out .= "<span class='$action'>$link$sep</span>"; |
| 464 | } |