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 |
---|---|
46 | <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td> |
47 | <?php |
48 | // TODO |
49 | break; |
50 |
|
51 | case 'media': |
52 | ?> |
53 | <td><strong><a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), get_the_title())); ?>"><?php the_title(); ?></a></strong><br /> |
54 | <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> |
55 | <?php do_action('manage_media_media_column', $post->ID); ?> |
56 | </td> |
57 | <?php |
58 | break; |
59 |
|
60 | case 'desc': |
61 | ?> |
62 | <td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> |
63 | <?php |
64 | break; |