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 7 times in this file.
Line | Code |
---|---|
171 | } else { |
172 | $output .= " "; |
173 | } |
174 | $output .= '</th>'; |
175 | break; |
176 | case 'name': |
177 | $output .= "<td $attributes>$edit"; |
178 | $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; |
179 | $output .= '<div class="name">' . $qe_data->name . '</div>'; |
180 | $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>'; |
181 | $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>'; |
182 | break; |
183 | case 'description': |
184 | $output .= "<td $attributes>$category->description</td>"; |
185 | break; |
186 | case 'slug': |
187 | $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>"; |
188 | break; |
189 | case 'posts': |
190 | $attributes = 'class="posts column-posts num"' . $style; |
191 | $output .= "<td $attributes>$posts_count</td>\n"; |
192 | break; |
193 | default: |
194 | $output .= "<td $attributes>"; |
195 | $output .= apply_filters('manage_categories_custom_column', '', $column_name, $category->term_id); |
196 | $output .= "</td>"; |
Line | Code |
341 | } else { |
342 | $output .= " "; |
343 | } |
344 | $output .= "</th>"; |
345 | break; |
346 | case 'name': |
347 | $output .= "<td $attributes>$edit"; |
348 | $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; |
349 | $output .= '<div class="name">' . $qe_data->name . '</div>'; |
350 | $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>'; |
351 | $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>'; |
352 | break; |
353 | case 'description': |
354 | $output .= "<td $attributes>$category->description</td>"; |
355 | break; |
356 | case 'slug': |
357 | $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>"; |
358 | break; |
359 | case 'links': |
360 | $attributes = 'class="links column-links num"' . $style; |
361 | $output .= "<td $attributes>$count</td>"; |
362 | break; |
363 | default: |
364 | $output .= "<td $attributes>"; |
365 | $output .= apply_filters('manage_link_categories_custom_column', '', $column_name, $category->term_id); |
366 | $output .= "</td>"; |
Line | Code |
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>'; |
682 | $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; |
683 | $out .= '<div class="name">' . $qe_data->name . '</div>'; |
684 | $out .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div></div></td>'; |
685 | break; |
686 | case 'description': |
687 | $out .= "<td $attributes>$tag->description</td>"; |
688 | break; |
689 | case 'slug': |
690 | $out .= "<td $attributes>" . apply_filters('editable_slug', $tag->slug) . "</td>"; |
691 | break; |
692 | case 'posts': |
693 | $attributes = 'class="posts column-posts num"' . $style; |
694 | $out .= "<td $attributes>$count</td>"; |
695 | break; |
696 | default: |
697 | $out .= "<td $attributes>"; |
698 | $out .= apply_filters("manage_${taxonomy}_custom_column", '', $column_name, $tag->term_id); |
699 | $out .= "</td>"; |
Line | Code |
1289 |
|
1290 | if ( ! current_user_can('edit_' . $post->post_type, $post->ID) ) |
1291 | return; |
1292 |
|
1293 | $title = esc_attr($post->post_title); |
1294 |
|
1295 | echo ' |
1296 | <div class="hidden" id="inline_' . $post->ID . '"> |
1297 | <div class="post_title">' . $title . '</div> |
1298 | <div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div> |
1299 | <div class="post_author">' . $post->post_author . '</div> |
1300 | <div class="comment_status">' . $post->comment_status . '</div> |
1301 | <div class="ping_status">' . $post->ping_status . '</div> |
1302 | <div class="_status">' . $post->post_status . '</div> |
1303 | <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div> |
1304 | <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div> |
1305 | <div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div> |
1306 | <div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div> |
1307 | <div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div> |