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.
This hook occurs 5 times in this file.
Line | Code |
---|---|
142 | } else { |
143 | $output .= " "; |
144 | } |
145 | $output .= "</th>"; |
146 | break; |
147 | case 'name': |
148 | $output .= "<td $attributes>$edit"; |
149 | $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; |
150 | $output .= '<div class="name">' . $qe_data->name . '</div>'; |
151 | $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>'; |
152 | $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>'; |
153 | break; |
154 | case 'description': |
155 | $output .= "<td $attributes>$category->description</td>"; |
156 | break; |
157 | case 'slug': |
158 | $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>"; |
159 | break; |
160 | case 'links': |
161 | $attributes = 'class="links column-links num"' . $style; |
162 | $output .= "<td $attributes>$count</td>"; |
163 | break; |
164 | default: |
165 | $output .= "<td $attributes>"; |
166 | $output .= apply_filters('manage_link_categories_custom_column', '', $column_name, $category->term_id); |
167 | $output .= "</td>"; |
Line | Code |
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 | } |
465 | $out .= '</div>'; |
466 | $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; |
467 | $out .= '<div class="name">' . $qe_data->name . '</div>'; |
468 | $out .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>'; |
469 | $out .= '<div class="parent">' . $qe_data->parent . '</div></div></td>'; |
470 | break; |
471 | case 'description': |
472 | $out .= "<td $attributes>$tag->description</td>"; |
473 | break; |
474 | case 'slug': |
475 | $out .= "<td $attributes>" . apply_filters('editable_slug', $tag->slug) . "</td>"; |
476 | break; |
477 | case 'posts': |
478 | $attributes = 'class="posts column-posts num"' . $style; |
479 | $out .= "<td $attributes><a href='edit.php?$tagsel=$tag->slug&post_type=$post_type'>$count</a></td>"; |
480 | break; |
481 | default: |
482 | $out .= "<td $attributes>"; |
483 | $out .= apply_filters("manage_${taxonomy}_custom_column", '', $column_name, $tag->term_id); |
484 | $out .= "</td>"; |
Line | Code |
1184 | $post_type_object = get_post_type_object($post->post_type); |
1185 | if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) ) |
1186 | return; |
1187 |
|
1188 | $title = esc_attr( get_the_title( $post->ID ) ); |
1189 |
|
1190 | echo ' |
1191 | <div class="hidden" id="inline_' . $post->ID . '"> |
1192 | <div class="post_title">' . $title . '</div> |
1193 | <div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div> |
1194 | <div class="post_author">' . $post->post_author . '</div> |
1195 | <div class="comment_status">' . $post->comment_status . '</div> |
1196 | <div class="ping_status">' . $post->ping_status . '</div> |
1197 | <div class="_status">' . $post->post_status . '</div> |
1198 | <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div> |
1199 | <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div> |
1200 | <div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div> |
1201 | <div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div> |
1202 | <div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div> |