Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_media_media_column

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
50           <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td>
51           <?php
52           // TODO
53           break;
55      case 'media':
56           ?>
57           <td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
58           <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
59           <?php do_action('manage_media_media_column', $post->ID); ?>
60           </td>
61           <?php
62           break;
64      case 'desc':
65           ?>
66           <td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
67           <?php
68           break;